Skip to content

Add document types and HTML factories for native WPT - #84

Open
cowboyd wants to merge 1 commit into
wpt-restructurefrom
dom-document-type
Open

cowboyd wants to merge 1 commit into
wpt-restructurefrom
dom-document-type

Conversation

@cowboyd

@cowboyd cowboyd commented Nov 17, 2026 •

Copy link
Copy Markdown
Contributor

What does this PR do?

See #87 for the endgame.

We want to run WPT test cases directly without any changes to the upstream and without hosting hundreds approximations of those tests in our repository. Those files create additional documents and doctypes during shared setup, so the implementation needs those factories before the harness can execute them directly.

Add DocumentType, DOMImplementation.createDocumentType(), and createHTMLDocument(). HTML creation supplies a doctype, <html>, <head>, an optional <title>, and <body>. Bare documents start empty; documentElement, doctype, head, and body reflect the current tree. UI construction uses the HTML factory.

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

commit: b4764fd

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