[Webkit-unassigned] [Bug 22684] Creating a range with a boundary node's ancestor not in the DOM throws INVALID_NODE_TYPE_ERR

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Sun Nov 15 17:38:08 PST 2009


https://bugs.webkit.org/show_bug.cgi?id=22684





--- Comment #4 from Alexey Proskuryakov <ap at webkit.org>  2009-11-15 17:38:08 PST ---
Looks like WebKit behavior is correct per
<http://www.w3.org/TR/DOM-Level-2-Traversal-Range/ranges.html> though:

"INVALID_NODE_TYPE_ERR: Raised if the root container of refNode is not an Attr,
Document, or DocumentFragment node or if refNode is a Document,
DocumentFragment, Attr, Entity, or Notation node." In the attached test case,
root container is an Element node.

Also, "... the content of a Range must be entirely within the subtree rooted by
a single Document, DocumentFragment or Attr Node", per paragraph 2.2.1.

-- 
Configure bugmail: https://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.



More information about the webkit-unassigned mailing list