Skip to content

Fix GH-24260: querySelectorAll() returns duplicate elements for selector lists - #24267

Open
fivefilters wants to merge 1 commit into
php:PHP-8.4from
fivefilters:fix-gh24260
Open

fivefilters wants to merge 1 commit into
php:PHP-8.4from
fivefilters:fix-gh24260

Conversation

@fivefilters

@fivefilters fivefilters commented Oct 12, 2026 •

Copy link
Copy Markdown

Fixes #24260.

AI-assisted (Claude), reviewed by me: querySelectorAll() now passes LXB_SELECTORS_OPT_MATCH_FIRST, as querySelector(), matches() and closest() already do, so an element that matches several selectors in a list is returned once. Adds a regression test.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant