servo/components/script/xpath
Ville Lindholm 07c33a180c
fix(xpath): pass in correct context node for // and / in predicates (#37434)
For example `div[count(//p)]` should count all `<p>` elements in the
document, not just the ones underneath the `<div>`.

Testing: WPT tests cover this, the fix makes two more test pass.

Signed-off-by: Ville Lindholm <ville@lindholm.dev>
2025-06-17 18:45:00 +00:00
..
context.rs script: Fix two issues in the XPath parser to pass all xml_xpath_tests.xml tests (#37279) 2025-06-06 07:16:42 +00:00
eval.rs fix(xpath): pass in correct context node for // and / in predicates (#37434) 2025-06-17 18:45:00 +00:00
eval_function.rs
eval_value.rs
mod.rs
parser.rs script: Fix two issues in the XPath parser to pass all xml_xpath_tests.xml tests (#37279) 2025-06-06 07:16:42 +00:00