Skip to content

fix(transformer): fail closed runtime DOM contracts - #1069

Merged
chubes4 merged 1 commit into
trunkfrom
fix/1035-runtime-dom-contracts
Aug 23, 2026
Merged

fix(transformer): fail closed runtime DOM contracts#1069
chubes4 merged 1 commit into
trunkfrom
fix/1035-runtime-dom-contracts

Conversation

@chubes4

@chubes4 chubes4 commented Aug 23, 2026

Copy link
Copy Markdown
Contributor

Summary

  • preserve root runtime data attributes only in same-element bounded islands instead of moving them onto RichText carriers
  • retain native parent, sibling, ID, class, and source-equivalent inline contracts around bounded islands
  • surface per-target native and fallback diagnostics, and promote missing required runtime targets to error-level compiler diagnostics

Validation

  • composer --working-dir=php-transformer test
  • 280 PHP transformer parity fixtures

Closes #1035. Follow-up to merged #1045 and #1059.

AI assistance

OpenAI GPT-5.6 Sol via OpenCode general coding subagent inspected the post-merge findings, implemented same-element runtime data fallback boundaries and fail-closed compiler diagnostics, and ran the full PHP transformer verification. Chris Huber remains responsible for the changes.

@chubes4
chubes4 marked this pull request as ready for review August 23, 2026 02:35
@chubes4
chubes4 merged commit 4c0fb3c into trunk Aug 23, 2026
4 checks passed
@chubes4
chubes4 deleted the fix/1035-runtime-dom-contracts branch August 23, 2026 02:35
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.

Preserve runtime DOM contracts in native Gutenberg blocks

1 participant