Bug 121571
| Summary: | Make Range methods to work with detached node | ||
|---|---|---|---|
| Product: | WebKit | Reporter: | Ryosuke Niwa <rniwa> |
| Component: | DOM | Assignee: | Nobody <webkit-unassigned> |
| Status: | NEW | ||
| Severity: | Normal | CC: | ahmad.saleem792, ap, bfulgham, sam, webkit-bug-importer |
| Priority: | P2 | Keywords: | BlinkMergeCandidate, InRadar |
| Version: | 528+ (Nightly build) | ||
| Hardware: | Unspecified | ||
| OS: | Unspecified | ||
Ryosuke Niwa
Consider merging https://chromium.googlesource.com/chromium/blink/+/93208b27143a237459839eb38621c0aded227f7f
This patch makes Range methods, setEndAfter, setEndBefore, setStartAfter, setStartBefore, selectNode and surroundContents, to work with detached node as the spec, http://dom.spec.whatwg.org)
| Attachments | ||
|---|---|---|
| Add attachment proposed patch, testcase, etc. |
Alexey Proskuryakov
See also: bug 25571, bug 33510.
Ahmad Saleem
Test Case - range-on-detached-node.html - https://jsfiddle.net/x3nos9qk/
^ Safari 15.6.1 and Firefox Nightly 105 do fail some tests but Chrome Canary 106 pass all the tests from above.
Test Case - surroundContents-for-detached-node.html - https://jsfiddle.net/wp219do0/
^ All browsers (Safari 15.6.1, Chrome Canary 106 and Firefox Nightly 105) pass all tests. Thanks!
Radar WebKit Bug Importer
<rdar://problem/99055571>