Skip to content

Add Document.querySelector for native WPT fixture lookup - #86

Open
cowboyd wants to merge 1 commit into
dom-create-documentfrom
dom-document-selectors
Open

cowboyd wants to merge 1 commit into
dom-create-documentfrom
dom-document-selectors

Conversation

@cowboyd

@cowboyd cowboyd commented Nov 17, 2026 •

Copy link
Copy Markdown
Contributor

What does this PR do?

See #87 for the endgame.

We want to run WPT test cases directly without any changes to the upstream and without hosting hundreds approximations of those tests in our repository.

The element-creation files use document.querySelector() to locate iframe fixtures during shared setup, even when only their HTML-document cases are selected.

Add Document.querySelector() through the css-select adapter, returning the first match or null and converting selector compilation errors to SyntaxError. The adapter is reused unchanged from the earlier selector work. See the DOM specification's scope-matching algorithm.

Type of change

  • Bug fix
  • Feature
  • Refactor (no behavior change)
  • Documentation
  • Performance improvement
  • Tests
  • Chore (dependencies, CI, tooling)

Checklist

  • I have added a changeset

AI-generated code disclosure

  • This PR includes AI-generated code

@socket-security

Copy link
Copy Markdown

Review the following changes in direct dependencies. Learn more about Socket for GitHub.

Diff Package Supply Chain
Security
Vulnerability Quality Maintenance License
Addedcss-select@​7.0.010010010081100

View full report

@pkg-pr-new

pkg-pr-new Bot commented Nov 17, 2026

Copy link
Copy Markdown

Open in StackBlitz

npm i https://pkg.pr.new/bombshell-dev/ui/@clack/ui@86

commit: 21d311f

@cowboyd
cowboyd added this pull request to stack #88 November 17, 2026 05:00
@cowboyd
cowboyd marked this pull request as ready for review November 17, 2026 05:12
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