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

specify support of ShadowRoot#341

Open
valdrinkoshi wants to merge 1 commit intoGoogleChrome:masterfrom
valdrinkoshi:clearer-test
Open

specify support of ShadowRoot#341
valdrinkoshi wants to merge 1 commit intoGoogleChrome:masterfrom
valdrinkoshi:clearer-test

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