Skip to content

Rebase template-content DOM tree fix from #264 onto current master - #277

Draft
goetas with Copilot wants to merge 1 commit into
masterfrom
copilot/rebase-html5-php-264
Draft

Rebase template-content DOM tree fix from #264 onto current master#277
goetas with Copilot wants to merge 1 commit into
masterfrom
copilot/rebase-html5-php-264

Conversation

Copilot AI commented Aug 18, 2026

Copy link
Copy Markdown
Contributor

PR #264 was behind master, which blocked merge. This PR replays the same change set on top of current master so the fix can be reviewed and merged against the current base.

  • Rebased change set

  • Template-content DOM integration

    • Carries forward the added HTML5 DOM wrappers and template-content handling (TemplateContents and related DOM classes).
    • Keeps parser and serializer updates that make <template> contents participate correctly in the DOM lifecycle.
  • Behavioral intent retained

$dom = $html5->loadHTML('<template><div id="inner">x</div></template>');
$template = $dom->getElementsByTagName('template')->item(0);

// content is represented as a managed fragment participating in DOM operations
$fragment = $template->content;
$node = $fragment->firstChild; // <div id="inner">x</div>

Co-authored-by: goetas <776743+goetas@users.noreply.github.com>
Copilot AI changed the title Fix template contents participating in the DOM tree (rebased from #264) Rebase template-content DOM tree fix from #264 onto current master Aug 18, 2026
Copilot AI requested a review from goetas August 18, 2026 05:58
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.

3 participants