Selection's Ranges should be removed on document.open()
Categories
(Core :: DOM: Selection, defect)
Tracking
()
People
(Reporter: ayg, Unassigned)
References
Details
Reporter | ||
Comment 1•13 years ago
|
||
Comment 2•6 years ago
|
||
Spec has since changed. As far as I can tell, the new spec doesn't say to do anything magic with selection...
The test link in comment 1 seems to be 404 now. What is the expected behavior here, and what do browsers actually do?
Comment 3•6 years ago
|
||
Some digging-around yields https://github.com/w3c/editing/blob/1b2a1256bc79b470b34dc8846534e870266251e7/selecttest/Document-open.html as what Aryeh was referring to, which was then added to WPT as https://github.com/web-platform-tests/wpt/blob/01a11727cdfb8a3ac30a20c4c7314ae35e5c35da/selection/Document-open.html. However, the test was recently changed to the actual spec behavior in https://github.com/web-platform-tests/wpt/pull/15812, which is the same as Firefox's current behavior. The behavior of Chrome is tracked in https://crbug.com/941913.
tl;dr: This is no longer a bug for Firefox. Chrome still does something different (in order to pass the older test it turns out), but that will be fixed hopefully soon.
Comment 4•6 years ago
|
||
Great, thank you!
Description
•