Skip to content

Fix template contents participating in the DOM tree - #264

Open
eyupcanakman wants to merge 2 commits into
Masterminds:masterfrom
eyupcanakman:fix/template-contents-252
Open

eyupcanakman wants to merge 2 commits into
Masterminds:masterfrom
eyupcanakman:fix/template-contents-252

Conversation

@eyupcanakman

Copy link
Copy Markdown
Contributor

Parse template contents into detached fragments so they do not participate in normal DOM traversal.

Preserve detached template contents during serialization, cloneNode(true), and importNode(true), and keep caller-provided target_document node classes unchanged.

Fixes #252.

@goetas goetas closed this Aug 18, 2026
@goetas goetas reopened this Aug 18, 2026
@eyupcanakman
eyupcanakman force-pushed the fix/template-contents-252 branch 2 times, most recently from 0c1fda6 to 884259a Compare August 19, 2026 15:32
@goetas
goetas force-pushed the fix/template-contents-252 branch from 884259a to 914c602 Compare October 22, 2026 19:15
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>

This branch has not been deployed

No deployments
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.

Template contents participate in the DOM tree

2 participants