https://bugzilla.wikimedia.org/show_bug.cgi?id=31847
--- Comment #13 from Brion Vibber <[email protected]> 2011-10-20 22:19:48 UTC --- Ok, so we're getting the bad positioning by performing operations on bogus input in the classic IE path in textSelection's getCaretPosition(). It's fetching a selection via document.selection.createRange().duplicate(), then trying to figure out the start/end positions of the selection by making additional selections from the beginning and end of the textarea and extracting the bits around. However, if there wasn't actually text selected... we get a totally empty TextRange. Its text property is empty, its boundingLeft/Top/Width/Height properties are all 0, etc. The operations we perform on it end up reporting some totally bogus position inside the textarea, but it was GIGO the whole way. Looks like we need a way to get caret position on IE 6/7/8 when there's no selection, and use that instead. -- 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
