Skip to content

Add regression test for GH-25210 - #25212

Open
phcorp wants to merge 1 commit into
php:PHP-8.4from
phcorp:gh25210-test
Open

phcorp wants to merge 1 commit into
php:PHP-8.4from
phcorp:gh25210-test

Conversation

@phcorp

@phcorp phcorp commented Nov 5, 2026

Copy link
Copy Markdown

GH-25210 reported that querySelectorAll() returns an element once per matching selector of a selector list, e.g. ul li, ol li. That was already fixed by GH-24260 (d1fdbba), but the test for that fix only covers class and :is() selector lists.

This adds a test for selector lists that use descendant and child combinators, run both from the document and from an element. It fails on 8.5.12 and passes on PHP-8.4 at the current HEAD.

Test-only change; no NEWS entry.

querySelectorAll() returned an element once per matching selector of a
selector list. This was fixed by phpGH-24260, whose test only covers class
and :is() selectors; cover selector lists using combinators too.

Closes phpGH-25210
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