Skip to content
This repository was archived by the owner on Dec 7, 2022. It is now read-only.

Conversation

@valdrinkoshi
Copy link
Contributor

#338 actually provided support for elements hosted in a shadow root, not a <template>. This PR makes it more clear & updates the tests accordingly.

When an element is hosted in <template>.content, its .parentNode will be a DocumentFragment, and the fragment's .host will be undefined.
When an element is hosted in a shadowRoot, its .parentNode will be a DocumentFragment, and the fragment's .host will be the shadowRoot owner element 🎉

@valdrinkoshi
Copy link
Contributor Author

@alice @addyosmani FYI. This is just to have more robust tests 💪

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant