Skip to content
Snippets Groups Projects
Commit 9a638b18 authored by Reiter, Christoph's avatar Reiter, Christoph :snake:
Browse files

Add getShadowRootDocument() helper

In case the scoped registry polyfill is loaded we need to create
elements inside of the shadowroot.

getShadowRootDocument() returns the polyfilled shadowroot, or in case
the polyfill is not loaded just return the global document, which works
in case there are no scoped registries.

In case we get something like https://github.com/open-wc/open-wc/pull/2389
this will be usefull. Also it makes IDE completion work + eslint.
parent a9e8970d
No related branches found
No related tags found
No related merge requests found
Pipeline #86595 passed
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment