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.min.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.min.js')
-rw-r--r-- | packages/integrations/lit/client-shim.min.js | 11 |
1 files changed, 2 insertions, 9 deletions
diff --git a/packages/integrations/lit/client-shim.min.js b/packages/integrations/lit/client-shim.min.js index 2e3d07ae7..d4dca4dd2 100644 --- a/packages/integrations/lit/client-shim.min.js +++ b/packages/integrations/lit/client-shim.min.js @@ -8,7 +8,7 @@ var b = (t, n) => { function s() { if (d === void 0) { let t = document.createElement('div'); - (t.innerHTML = '<div><template shadowroot="open" shadowrootmode="open"></template></div>'), + (t.innerHTML = '<div><template shadowrootmode="open"></template></div>'), (d = !!t.firstElementChild.shadowRoot); } return d; @@ -79,13 +79,6 @@ async function g() { let { hydrateShadowRoots: t } = await Promise.resolve().then(() => (S(), v)); window.addEventListener('DOMContentLoaded', () => t(document.body), { once: true }); } -var x = new DOMParser() - .parseFromString( - '<p><template shadowroot="open" shadowrootmode="open"></template></p>', - 'text/html', - { - includeShadowRoots: !0, - } - ) +var x = Document.parseHTMLUnsafe('<p><template shadowrootmode="open"></template></p>') .querySelector('p'); (!x || !x.shadowRoot) && g(); |