Skip to content

Cover :has() backport regressions on v3 - #217

Closed
jdalton wants to merge 2 commits into
prerelease/3.0.0from
test/has-backport-v3
Closed

jdalton wants to merge 2 commits into
prerelease/3.0.0from
test/has-backport-v3

Conversation

@jdalton

@jdalton jdalton commented Sep 17, 2026

Copy link
Copy Markdown
Collaborator

Add the same 18 :has() regression cases used for the v2 backport to the v3 unit suite. They cover invalid arguments on empty and populated queries, nested :has() inside strict and forgiving lists, wildcard namespaces, quoted and escaped text, repeated queries, and configuration changes across the installed DOM selector APIs.

The existing v3 runtime already passes these cases, so this PR changes tests only and removes docs/repo/testing/has-comparison.md. No new backport report files are committed.

Validation:

  • All 36 tests in the new has-validation suite and existing logical-validation suite pass.
  • pnpm run check passes, including formatting, lint, and TypeScript validation.
  • All 112 subtests across the seven pinned WPT :has() pages pass on both v3 and the patched v2 source. WPT revision: fd983776a7cd19ebcda7a2bcb69c74330ee5d8c9, Chrome for Testing 154.0.8037.0. Parsing pages use the existing DOM selector-validity helper without result filtering. The separate :has-slotted pseudo-class is excluded from this total.

@jdalton jdalton closed this Sep 17, 2026
@jdalton
jdalton deleted the test/has-backport-v3 branch September 17, 2026 17:43
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.

1 participant