[Bug 29655] [XP31] Ambiguous parse for /[x]

https://www.w3.org/Bugs/Public/show_bug.cgi?id=29655

Michael Dyck <jmdyck@ibiblio.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |jmdyck@ibiblio.org

--- Comment #2 from Michael Dyck <jmdyck@ibiblio.org> ---
(In reply to Michael Kay from comment #0)
> In XPath 3.0, the expression /[x] parsed unambiguously, and selected the
> root node provided it had a child element named x.

I agree with Josh, I don't think that's ever been the case. In order to parse
[x] as a Predicate, it would have to be preceded by a ReverseStep, a
ForwardStep, or a PrimaryExpr, but none of those derive /, a PathExpr.

To get the semantics you describe, you'd have to write (/)[x].

-- 
You are receiving this mail because:
You are the QA Contact for the bug.

Received on Saturday, 21 May 2016 13:48:08 UTC