mirror of
https://github.com/servo/servo
synced 2026-05-10 17:12:23 +02:00
The result of a predicate can depend on the position of the node in its set, and this position is dependent on the axis that the node set came from. This is specified in https://www.w3.org/TR/1999/REC-xpath-19991116/#predicates. Additionally, this change fixes a small bug in the implementation of `preceding::` (https://github.com/servo/servo/pull/40588) where the root of a subtree would be included twice. That wasn't discovered earlier because nodes are deduplicated at the end of the evaluation. Testing: New tests start to pass, this change adds more tests --------- Signed-off-by: Simon Wülker <simon.wuelker@arcor.de>
11 KiB
11 KiB