Bug 148687

Summary: Range.insersectsNode(node) is supposed to return true if node.parent is null
Product: WebKit Reporter: Chris Dumez <cdumez>
Component: DOMAssignee: Chris Dumez <cdumez>
Status: RESOLVED FIXED    
Severity: Normal CC: commit-queue, esprehn+autocc, kangil.han, rniwa, webkit-bug-importer
Priority: P2 Keywords: InRadar, WebExposed
Version: Other   
Hardware: Unspecified   
OS: Unspecified   
URL: https://dom.spec.whatwg.org/#dom-range-intersectsnode
Attachments:
Description Flags
Patch none

Description Chris Dumez 2015-09-01 12:56:22 PDT
Range.insersectsNode(node) is supposed to return true if node.parent is null:
https://dom.spec.whatwg.org/#dom-range-intersectsnode (step 3)

Currently, WebKit throws a NotFoundError, apparently to match Firefox's behavior. However, these days, Firefox complies with the spec and returns true here.
Comment 1 Chris Dumez 2015-09-01 13:03:48 PDT
Created attachment 260378 [details]
Patch
Comment 2 Chris Dumez 2015-09-01 13:46:53 PDT
Comment on attachment 260378 [details]
Patch

Clearing flags on attachment: 260378

Committed r189225: <http://trac.webkit.org/changeset/189225>
Comment 3 Chris Dumez 2015-09-01 13:46:58 PDT
All reviewed patches have been landed.  Closing bug.
Comment 4 Chris Dumez 2015-09-02 13:23:51 PDT
rdar://problem/22544381