Skip to content

Add document fragments for native WPT setup - #90

Draft
cowboyd wants to merge 1 commit into
dom-default-viewfrom
dom-document-fragment
Draft

cowboyd wants to merge 1 commit into
dom-default-viewfrom
dom-document-fragment

Conversation

@cowboyd

@cowboyd cowboyd commented Nov 17, 2026

Copy link
Copy Markdown
Contributor

What does this PR do?

Original WPT selector files create document fragments during shared setup. This adds Document.createDocumentFragment() so the selector stack can run the upstream HTML sources directly, preserving their setup and assertions.

Adds fragment node identity, descendant text content, and insertion that transfers the fragment's children in order and returns the emptied fragment. Enables the corresponding original WPT cases. Fragment selector methods follow in #81.

This is a prerequisite for the native WPT migration and selector stack; no separate issue is needed.

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 17, 2026 •

Copy link
Copy Markdown

Open in StackBlitz

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

commit: 3d233a4

@cowboyd
cowboyd force-pushed the dom-document-fragment branch from cf99db9 to 5018673 Compare November 17, 2026 21:43
@cowboyd
cowboyd force-pushed the dom-document-fragment branch from 5018673 to 392969a Compare November 17, 2026 22:12
@cowboyd
cowboyd force-pushed the dom-document-fragment branch from 392969a to a1074d9 Compare November 18, 2026 02:41
@cowboyd
cowboyd force-pushed the dom-document-fragment branch from a1074d9 to 3d233a4 Compare November 18, 2026 02:50
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