diff options
author | 2024-05-29 16:00:31 -0400 | |
---|---|---|
committer | 2024-05-29 16:00:31 -0400 | |
commit | cf9b2ff7967c4287ab26ec65fc4bb2eed525a235 (patch) | |
tree | 15800b2327ac24077f1545548f70d9bd255c60cf /packages/integrations/lit/client-shim.js | |
parent | 369069a173b8c5fe1e96220744601b7efdeb5429 (diff) | |
download | astro-cf9b2ff7967c4287ab26ec65fc4bb2eed525a235.tar.gz astro-cf9b2ff7967c4287ab26ec65fc4bb2eed525a235.tar.zst astro-cf9b2ff7967c4287ab26ec65fc4bb2eed525a235.zip |
:bug: removed deprecated items from lit integration (#11164)
* :bug: removed deprecated items from lit integration
* :rocket: update minified
* :bug: need `Document`
Diffstat (limited to 'packages/integrations/lit/client-shim.js')
-rw-r--r-- | packages/integrations/lit/client-shim.js | 10 |
1 files changed, 2 insertions, 8 deletions
diff --git a/packages/integrations/lit/client-shim.js b/packages/integrations/lit/client-shim.js index bf45dd912..0cd344426 100644 --- a/packages/integrations/lit/client-shim.js +++ b/packages/integrations/lit/client-shim.js @@ -7,14 +7,8 @@ async function polyfill() { }); } -const polyfillCheckEl = new DOMParser() - .parseFromString( - `<p><template shadowroot="open" shadowrootmode="open"></template></p>`, - 'text/html', - { - includeShadowRoots: true, - } - ) +const polyfillCheckEl = Document + .parseHTMLUnsafe(`<p><template shadowrootmode="open"></template></p>`) .querySelector('p'); if (!polyfillCheckEl?.shadowRoot) { |