Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: sort elements based on selector matching algorithm #9836

Merged
merged 1 commit into from
Mar 13, 2023
Merged

Conversation

jrandolf
Copy link
Contributor

The CSS Selector spec (https://www.w3.org/TR/selectors-4/#match-against-tree) defines selector ordering as the ordering determined by breadth-first search of the DOM tree. To mimic this in P selectors, we sort results based on this ordering.

@jrandolf jrandolf requested a review from OrKoN March 13, 2023 13:22
The CSS Selector spec (https://www.w3.org/TR/selectors-4/#match-against-tree) defines selector ordering as the ordering determined by breadth-first search of the DOM tree. To mimic this in P selectors, we sort results based on this ordering.
@jrandolf jrandolf merged commit 9044609 into main Mar 13, 2023
@jrandolf jrandolf deleted the sort-results branch March 13, 2023 15:11
@release-please release-please bot mentioned this pull request Mar 13, 2023
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.

None yet

2 participants