[Webkit-unassigned] [Bug 22025] New: getSelection().getRangeAt().collapse does not work
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Fri Oct 31 19:20:18 PDT 2008
https://bugs.webkit.org/show_bug.cgi?id=22025
Summary: getSelection().getRangeAt().collapse does not work
Product: WebKit
Version: 523.x (Safari 3)
Platform: PC
OS/Version: Windows XP
Status: UNCONFIRMED
Severity: Normal
Priority: P2
Component: JavaScriptCore
AssignedTo: webkit-unassigned at lists.webkit.org
ReportedBy: digitalpacman at hotmail.com
Calling getSelection().getRangeAt().collapse(true) does nothing and
getSelection().getRangeAt().collapsed is never set to true.
Also, it is impossible to unhighlight text if you set the innerHTML of a node
that is selected (or cursor is in) and then put the cursor back to the normal
position without using hacks. Webkit will incorrectly highlight text that
should not be highlighted. You cannot unhighlight this text.
1) build some text
2) put the cursor in the text
3) insert a marker at cursor location
4) set the innerHTML to itself
5) call window.find to locate the marker
6) call range.deleteContents()
7) the next character after the marker will be highlighted. You cannot
unhighlight it.
8) .collapse(true) doesnt work
9) setting the end and start of the range does not work
10) the only thing that works is calling setEndBefore and setStartBefore
--
Configure bugmail: https://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
More information about the webkit-unassigned
mailing list