Skip to content

Add querySelector and querySelectorAll support - #81

Closed
cowboyd wants to merge 1 commit into
dom-selectorsfrom
dom-query-selectors
Closed

cowboyd wants to merge 1 commit into
dom-selectorsfrom
dom-query-selectors

Conversation

@cowboyd

@cowboyd cowboyd commented Nov 16, 2026 •

Copy link
Copy Markdown
Contributor

What does this PR do?

Adds querySelector() on Element and DocumentFragment, and querySelectorAll() on Document, Element, and DocumentFragment. Document.querySelector() and the css-select adapter are inherited from the native WPT stack (#86). This is the next selector-support step, stacked on #80.

Document queries include the document element; Element and DocumentFragment queries search descendants. querySelector() returns the first match or null. querySelectorAll() returns a static, element-only NodeList with indexed access, item(), and iteration methods delegated to its backing array.

DocumentFragment creation is inherited from #90, beneath #70. This rung adds the fragment query methods and their original upstream WPT coverage alongside the existing selector cases.

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

@pkg-pr-new

pkg-pr-new Bot commented Nov 16, 2026 •

Copy link
Copy Markdown

Open in StackBlitz

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

commit: d3123ed

@cowboyd
cowboyd added this pull request to stack #82 November 16, 2026 04:11
@cowboyd
cowboyd marked this pull request as ready for review November 16, 2026 04:12
@cowboyd
cowboyd force-pushed the dom-query-selectors branch from 878d01e to 499a2cc Compare November 16, 2026 13:42
@cowboyd
cowboyd marked this pull request as draft November 17, 2026 17:46
@cowboyd
cowboyd force-pushed the dom-query-selectors branch from 499a2cc to f342b10 Compare November 17, 2026 18:03
@cowboyd
cowboyd force-pushed the dom-query-selectors branch from f342b10 to 0442513 Compare November 17, 2026 21:35
@cowboyd cowboyd mentioned this pull request Nov 17, 2026
3 of 9 tasks
@cowboyd
cowboyd force-pushed the dom-query-selectors branch from 0442513 to 27c96bd Compare November 17, 2026 21:43
@cowboyd
cowboyd force-pushed the dom-query-selectors branch from 27c96bd to d3123ed Compare November 17, 2026 22:12
@cowboyd cowboyd closed this Nov 17, 2026
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