Skip to content

Enable XPath by default #34527

@vlindhol

Description

@vlindhol

The DOM interface is gated behind dom_xpath_enabled, which is disabled by default.

Links

The DOM XPath spec is kind of a mess, here are some links I dug up:

  1. Original, retired spec: https://www.w3.org/TR/DOM-Level-3-XPath/
  2. "Living spec": https://dom.spec.whatwg.org/#xpath
  3. Some points about what's unspecified from the whatwg wiki: https://wiki.whatwg.org/wiki/DOM_XPath
  4. Some points about how XPath in HTML documents works differently: https://html.spec.whatwg.org/multipage/infrastructure.html#interactions-with-xpath-and-xslt

TODO

Test coverage

https://github.com/servo/servo/tree/main/tests/wpt/meta/domxpath

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-content/domInteracting with the DOM from web contentB-feature-trackingThis issue tracks a particular high-level feature

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions