8000 xpath: Let the parents of attribute nodes be their owner elements by simonwuelker · Pull Request #39749 · servo/servo · GitHub
[go: up one dir, main page]

Skip to content

Conversation

@simonwuelker
Copy link
Contributor

This is different from the rest of the DOM, see https://www.w3.org/TR/1999/REC-xpath-19991116/#attribute-nodes. Luckily, this can cleanly be implemented for XPath because we already abstract over the concrete DOM implementation.

Testing: This change adds a test
Part of #34527

Signed-off-by: Simon Wülker <simon.wuelker@arcor.de>
@servo-wpt-sync
Copy link
Collaborator

🤖 Opened new upstream WPT pull request (web-platform-tests/wpt#55339) with upstreamable changes.

@simonwuelker simonwuelker force-pushed the xpath-attr-nodes-element-parents branch from 1f9a881 to e11cd48 Compare October 9, 2025 21:31
Signed-off-by: Simon Wülker <simon.wuelker@arcor.de>
@simonwuelker simonwuelker force-pushed the xpath-attr-nodes-element-parents branch from e11cd48 to d4f2a05 Compare October 9, 2025 21:32
@servo-wpt-sync
Copy link
Collaborator

📝 Transplanted new upstreamable changes to existing upstream WPT pull request (web-platform-tests/wpt#55339).

1 similar comment
@servo-wpt-sync
Copy link
Collaborator

📝 Transplanted new upstreamable changes to existing upstream WPT pull request (web-platform-tests/wpt#55339).

Copy link
Member
@yezhizhen yezhizhen left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice find!

@servo-highfive servo-highfive removed the S-awaiting-review There is new code that needs to be reviewed. label Oct 10, 2025
@simonwuelker simonwuelker added this pull request to the merge queue Oct 10, 2025
@servo-highfive servo-highfive added the S-awaiting-merge The PR is in the process of compiling and running tests on the automated CI. label Oct 10, 2025
Merged via the queue into servo:main with commit a037ef0 Oct 10, 2025
25 checks passed
@simonwuelker simonwuelker 86D3 deleted the xpath-attr-nodes-element-parents branch October 10, 2025 05:38
@servo-highfive servo-highfive removed the S-awaiting-merge The PR is in the process of compiling and running tests on the automated CI. label Oct 10, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants

0