servo/components/script/xpath
Ville Lindholm 8cfb6e33fe
XPath: implement lang() and id() core functions (#34594)
XPath's `lang()` and `id()` functions were still unimplemented.

Also:
* Add WPT tests for `id()`.
* Fix uniqueness check in `NodesetHelpers::document_order_unique`.
* Tweak the AST a bit to make it clearer to express "no predicates".
* Fix a parsing bug where "/" was attempted before "//", leaving the
"//" branch as always unused.

---
- [x] `./mach build -d` does not report any errors
- [x] `./mach test-tidy` does not report any errors
- [x] These changes fix #34593 
- [x] There are tests for these changes

---------

Signed-off-by: Ville Lindholm <ville@lindholm.dev>
2025-06-02 19:00:13 +00:00
..
context.rs script: Limit public exports. (#34915) 2025-01-10 08:19:19 +00:00
eval.rs XPath: implement lang() and id() core functions (#34594) 2025-06-02 19:00:13 +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 XPath: implement lang() and id() core functions (#34594) 2025-06-02 19:00:13 +00:00