diff --git a/index.mjs b/index.mjs index 51233c9..ef5275a 100644 --- a/index.mjs +++ b/index.mjs @@ -35,7 +35,7 @@ const CustomElementMixin = (superclass) => class extends superclass { // Removes script tags as they are already appended to the body by SSR // TODO: If only added dynamically in the browser we need to insert the script tag after running the script transform on it. As well as handle deduplication. el.querySelectorAll('script') - .forEach((tag) => { el.content.removeChild(tag) }) + .forEach((tag) => { el.removeChild(tag) }) } removeStyleTags(el) { diff --git a/test/diff-test.html b/test/diff-test.html index 4d4ae1b..0befcda 100644 --- a/test/diff-test.html +++ b/test/diff-test.html @@ -85,6 +85,9 @@

${heading}

${heading}

+