Skip to content

Add querySelector and querySelectorAll support - #81

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

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 initial querySelector() and querySelectorAll() support to Document and Element, using the css-select adapter introduced in #80. This is the next selector-support step, stacked on that PR.

Document queries include the document element; Element 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.

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: 499a2cc

@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
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