[Webkit-unassigned] [Bug 87888] XPath expression `//node() ` shouldn’t match the DOCTYPE node
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Thu May 31 06:50:02 PDT 2012
https://bugs.webkit.org/show_bug.cgi?id=87888
--- Comment #6 from Mathias Bynens <mathias at qiwi.be> 2012-05-31 06:50:02 PST ---
This is probably a misinterpretation of http://www.w3.org/TR/xpath/#NT-NodeType, which says:
> A node test `node()` is true for any node of any type whatsoever.
This should have said:
> A node test `node()` is true for any node of any XPath-defined node type whatsoever.
This is clear when you look at the production below, which only mentions the specified node types:
> [7] NodeTest ::= NameTest
> | NodeType '(' ')'
> | 'processing-instruction' '(' Literal ')'
Where `NodeTest` is defined as:
> [38] NodeType ::= 'comment'
> | 'text'
> | 'processing-instruction'
> | 'node'
Document type nodes are neither of those four options.
--
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