diff options
author | 2023-02-01 05:44:56 -0800 | |
---|---|---|
committer | 2023-02-01 08:44:56 -0500 | |
commit | 2567aa48bba8751cf7e10429555f1e85830c9169 (patch) | |
tree | 13cc6d5638a0d6d9413f7a670bfda177962e153b /packages/integrations/lit/client-shim.js | |
parent | 724f9dc2d61eba616a822042e2061feabd5f489c (diff) | |
download | astro-2567aa48bba8751cf7e10429555f1e85830c9169.tar.gz astro-2567aa48bba8751cf7e10429555f1e85830c9169.tar.zst astro-2567aa48bba8751cf7e10429555f1e85830c9169.zip |
[Lit] Forwards compatiblity for streaming Declarative Shadow DOM (#6055)
* Forwards compatiblity for streaming DSD
* add shadowrootmode
* update tests
* add changeset
Diffstat (limited to 'packages/integrations/lit/client-shim.js')
-rw-r--r-- | packages/integrations/lit/client-shim.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/packages/integrations/lit/client-shim.js b/packages/integrations/lit/client-shim.js index ca97b92cc..c457710b7 100644 --- a/packages/integrations/lit/client-shim.js +++ b/packages/integrations/lit/client-shim.js @@ -8,7 +8,7 @@ async function polyfill() { } const polyfillCheckEl = new DOMParser() - .parseFromString(`<p><template shadowroot="open"></template></p>`, 'text/html', { + .parseFromString(`<p><template shadowroot="open" shadowrootmode="open"></template></p>`, 'text/html', { includeShadowRoots: true, }) .querySelector('p'); |