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
Branches
No related tags found
No related merge requests found
Pipeline #86595 passed
Status
Pipeline
Created by
Stages
Actions
Passed

00:04:48

avatar
Pipeline: End2End Tests - Cypress

#86596

    Download artifacts

    No artifacts found