[Webkit-unassigned] [Bug 148767] New: Range.selectNode cannot select a detached node
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Thu Sep 3 18:32:32 PDT 2015
https://bugs.webkit.org/show_bug.cgi?id=148767
Bug ID: 148767
Summary: Range.selectNode cannot select a detached node
Classification: Unclassified
Product: WebKit
Version: WebKit Nightly Build
Hardware: Unspecified
OS: Unspecified
Status: NEW
Severity: Normal
Priority: P2
Component: HTML DOM
Assignee: webkit-unassigned at lists.webkit.org
Reporter: rniwa at webkit.org
var div = document.createElement('div');
div.appendChild(document.createElement('p'));
var range = document.createRange();
range.selectNode(div.firstChild);
throws a INVALID_NODE_TYPE_ERROR but it shouldn't.
The problem is that checkNodeBA throws this exception when the root node of refNode is not a document, a document fragment, or an Attr node.
This bug was found by the newly added LayoutTests/http/tests/w3c/dom/ranges/Range-selectNode.html
--
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.webkit.org/pipermail/webkit-unassigned/attachments/20150904/a53f9b01/attachment.html>
More information about the webkit-unassigned
mailing list