servo/components/script/xpath
minghuaw 5b507dc871
script: Update name validation for attribute, element, and doctype (#37747)
A recent update in the spec (https://github.com/whatwg/dom/pull/1079)
introduced new rules for name validation of attribute, element, and
doctype. This PR implements the new name validation rules in
`components/script/dom/bindings/domname.rs`. The old XML name validation
rules are not fully removed because there remains a few usage of it in
`ProcessingInstructions` and `xpath`.

Testing: Covered by WPT tests
Fixes: #37746

---------

Signed-off-by: minghuaw <michael.wu1107@gmail.com>
Signed-off-by: Minghua Wu <michael.wu1107@gmail.com>
Co-authored-by: Xiaocheng Hu <xiaochengh.work@gmail.com>
2025-07-11 02:45:52 +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 script: Update name validation for attribute, element, and doctype (#37747) 2025-07-11 02:45:52 +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