Skip to content

Fix template contents participating in the DOM tree#264

Open
eyupcanakman wants to merge 1 commit intoMasterminds:masterfrom
eyupcanakman:fix/template-contents-252
Open

Fix template contents participating in the DOM tree#264
eyupcanakman wants to merge 1 commit intoMasterminds:masterfrom
eyupcanakman:fix/template-contents-252

Conversation

@eyupcanakman
Copy link
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.

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

1 participant