Skip to content

[codex] Add Rust and WASM HTML API implementation#68

Draft
sirreal wants to merge 486 commits into
trunkfrom
html-api-rust
Draft

[codex] Add Rust and WASM HTML API implementation#68
sirreal wants to merge 486 commits into
trunkfrom
html-api-rust

Conversation

@sirreal

@sirreal sirreal commented Jun 12, 2026

Copy link
Copy Markdown
Owner

Summary

Adds a Rust-backed HTML API prototype under ext/html-api-rust with native PHP extension and WASM package entry points. The Rust core builds as a shared native/WASM library, while the JavaScript wrapper exposes WordPress-like HTML API classes for browser and Node usage.

What changed

  • Adds the Rust HTML API core, native PHP extension shim, build scripts, and documentation.
  • Adds the WASM/NPM package wrapper with TypeScript declarations, loader support, browser smoke coverage, package artifact checks, and html5lib tree-test coverage.
  • Updates the PHP HTML API classes for native/WASM parity work around processor and tag processor behavior.

Validation

  • npm --prefix ext/html-api-rust/wasm run build
  • npm --prefix ext/html-api-rust/wasm run test:all
  • npm --prefix ext/html-api-rust/wasm run test:browser

The html5lib tree runner completed with zero unsupported cases, aside from the known WordPress duplicate shell-attribute skips documented in the package tests.

sirreal added 30 commits June 12, 2026 14:55
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