[Webkit-unassigned] [Bug 24896] REGRESSION: Range#collapsed is mis-reported after Range#extractContents is called

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Fri Mar 27 15:00:58 PDT 2009


https://bugs.webkit.org/show_bug.cgi?id=24896





------- Comment #7 from jparent at google.com  2009-03-27 15:00 PDT -------
For selecting (div, 0), (text, text.length):
WebKit reports the selection after extract contents as (div, 0), (text, 0),
collapse: false, and the text node remains.
FF reports (div, 0), (div, 0), collapse: true, and the text node remains.

So, they agree with not removing the text node, but they are modifying the
selection.

For selecting (div, 0), (div, 1):
Everyone agrees, after extractContents the selection is (div, 0), (div, 0),
collapsed: true, no text node.

For selecting (text, 0), (text, text.length):
Everyone agrees, selection is (text, 0), (text, 0), collapsed:true, text node
remains.

See http://jparent.googlepages.com/extractTests.html for the tests I ran.

Finally, no, Firefox does not report (div, 0), (text, 0) as collapsed.


-- 
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