https://bugzilla.wikimedia.org/show_bug.cgi?id=32241
--- Comment #14 from Lupo <[email protected]> 2011-11-14 12:06:07 UTC --- It appears that IE makes a distinction between the focused element and the active element. A focused element always is also the active element, but an element can be active without being focused. The point with IE is: if an element is focused, the browser brings it into view, as we've seen. If you only activate an element, it doesn't! See http://msdn.microsoft.com/en-us/library/ms536738%28v=VS.85%29.aspx (setActive) and http://msdn.microsoft.com/en-us/library/ms536425%28v=VS.85%29.aspx (focus) It appears that an element must be active, not necessarily focused, for createRange() to work properly. I've played around using textarea.setActive() instead of textarea.focus(), and that indeed seems to solve this IE-specific problem completely: insertions work as expected, and there's no screen flicker on IE8 anymore. (Test code replacing jquery.textSelection is at [[:commons:User:Lupo Test/common.js]].) I'll test a bit more, and if I don't find any problems, I'll post a new patch tonight (UTC). Using an IE-specific non-standard operation like setActive() should be OK in these code paths that are taken on IE only anyway. -- Configure bugmail: https://bugzilla.wikimedia.org/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are the assignee for the bug. You are on the CC list for the bug. _______________________________________________ Wikibugs-l mailing list [email protected] https://lists.wikimedia.org/mailman/listinfo/wikibugs-l
