[Webkit-unassigned] [Bug 12632] XPath: Cannot apply predicate to context node.
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Tue Feb 6 10:51:53 PST 2007
http://bugs.webkit.org/show_bug.cgi?id=12632
------- Comment #5 from ap at webkit.org 2007-02-06 10:51 PDT -------
I think WebKit is correct here, this syntax is invalid in XPath 1.0. See rule 4
- an abbreviated step cannot have predicates.
[4] Step ::= AxisSpecifier NodeTest Predicate*
| AbbreviatedStep
Also, see rule 20 - since "." is not a PrimaryExpr, it cannot start a
FilterExpr either.
[20] FilterExpr ::= PrimaryExpr
| FilterExpr Predicate
>From rule 20 comes another workaround: "(.)[@class='test']".
--
Configure bugmail: http://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
More information about the webkit-unassigned
mailing list