Skip to content

Add document fragments for native WPT setup - #90

Merged
cowboyd merged 1 commit into
mainfrom
dom-document-fragment
Nov 19, 2026
Merged

cowboyd merged 1 commit into
mainfrom
dom-document-fragment

Conversation

@cowboyd

@cowboyd cowboyd commented Nov 17, 2026 •

Copy link
Copy Markdown
Contributor

What does this PR do?

Add Document.createDocumentFragment(), fragment node identity, descendant textContent, and insertion that transfers children in order and returns the emptied fragment. Enable the corresponding original Web Platform Tests.

This starts the shared DOM foundation used by styling (#38) and focus (#75). The next PR, #70, adds document lookup and live collections on top of these node primitives. The WPT runner is inherited from main.

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: 8ce47b6

@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
Base automatically changed from dom-default-view to main November 18, 2026 21:50
@cowboyd
cowboyd force-pushed the dom-document-fragment branch from 3d233a4 to 723a036 Compare November 18, 2026 23:31
@cowboyd
cowboyd marked this pull request as ready for review November 18, 2026 23:35

@dreyfus92 dreyfus92 left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

awesome job charles 👀

Comment thread packages/ui/src/dom.ts Resolved
@cowboyd
cowboyd force-pushed the dom-document-fragment branch from 723a036 to dae9afb Compare November 19, 2026 01:06
@cowboyd
cowboyd force-pushed the dom-document-fragment branch from dae9afb to 8ce47b6 Compare November 19, 2026 03:42
@cowboyd
cowboyd removed this pull request from stack #91 November 19, 2026 17:17
@cowboyd
cowboyd added this pull request to stack #104 November 19, 2026 17:18
@cowboyd
cowboyd merged commit 80a8c6a into main Nov 19, 2026
8 of 10 checks passed
@cowboyd
cowboyd deleted the dom-document-fragment branch November 19, 2026 17:24
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.

2 participants