Canceling copy in Google chrome / Safari


#1

Hello!

This problem is simple. I can’t be a copy(Ctrl+C) of the tweetbox using last updated JavaScript on 2011-12-05 in Google chrome or Safari.
I’m guessing that the following piece of code causes failure.

Thanks for maintaining twitter.

http://a2.twimg.com/b/1/bundle/phoenix-core-en-201112051026.js

provide("tco", function (A) {
    ...
            updateSelection: function (E) {
                var D = twttr.tco.getSelection();
                var C = document.createRange();
                C.setStart(E.anchorNode, E.anchorOffset);
                C.setEnd(E.focusNode, E.focusOffset);
                if (C.startOffset === C.endOffset && C.anchorNode === C.focusNode && C.anchorNode !== E.anchorNode && C.focusNode !== E.focusNode) {
                    C.setStart(E.focusNode, E.focusOffset);
                    C.setEnd(E.anchorNode, E.anchorOffset)
                }
                D.removeAllRanges(); // Selection clear
                D.addRange(C); // C doesn't contain selection if element is tweetbox
            }
    ...
});

#2

#3