DescriptionRange.intersectsNode() does not behave according to the specification.
We should return true if parent is null as per specification.
https://dom.spec.whatwg.org/#dom-range-intersectsnode
Previously, WebKit would throw a NotFoundError, apparently
to match Firefox's behavior. However, these days, Firefox
complies with the specification and returns true here.
Picked from webkit https://trac.webkit.org/changeset/189225
BUG=535153
Committed: https://crrev.com/7634f50b38265607d2304c785dd07366e0a09585
Cr-Commit-Position: refs/heads/master@{#352310}
Patch Set 1 #Patch Set 2 : Test rebaselined #
Total comments: 4
Patch Set 3 : Fixed comments #
Messages
Total messages: 15 (4 generated)
|