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 XPath: implement lang() and id() core functions (#34594) 2025-06-02 19:00:13 +00:00
eval_value.rs XPath: implement lang() and id() core functions (#34594) 2025-06-02 19:00:13 +00:00
mod.rs Update rustfmt to the 2024 style edition (#35764) 2025-03-03 11:26:53 +00:00
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