Skip to content

Make Document a node for native WPT fixtures - #83

Open
cowboyd wants to merge 1 commit into
mainfrom
wpt-restructure
Open

cowboyd wants to merge 1 commit into
mainfrom
wpt-restructure

Conversation

@cowboyd

@cowboyd cowboyd commented Nov 17, 2026 •

Copy link
Copy Markdown
Contributor

What does this PR do?

This is the first rung toward running WPT natively against our DOM: execute unchanged upstream sources with their original document trees and shared setup.

Lots of tests use document.addEventListener(), document.body, etc... and so we need to Make Document inherit from Node, with DOCUMENT_NODE, #document, and a null ownerDocument. Its <html> root becomes a child of the document and contains <body>, so parent relationships use the implementation's own tree.

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

commit: 32404a4

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