Browse Source

template element method change

Heydon Pickering 8 years ago
parent
commit
ed3ef9e384

+ 1 - 1
docs/patterns/coding/writing-inline-demos/index.html

@@ -526,7 +526,7 @@ toggle.addEventListener('click', (e) => {
         var demoContent = template.content;
         var standalone = window.open();
         script.textContent = standaloneScript;
-        standalone.document.body.appendChild(document.importNode(template.content, true));
+        standalone.document.body.appendChild(template.content.cloneNode(true));
         
         standalone.document.title = 'demo ' + "414e06a48e755bf9e43e5e2596f9ea7a";
       });

+ 1 - 1
docs/print-version/index.html

@@ -1900,7 +1900,7 @@ toggle.addEventListener('click', (e) => {
         var demoContent = template.content;
         var standalone = window.open();
         script.textContent = standaloneScript;
-        standalone.document.body.appendChild(document.importNode(template.content, true));
+        standalone.document.body.appendChild(template.content.cloneNode(true));
         
         standalone.document.title = 'demo ' + "414e06a48e755bf9e43e5e2596f9ea7a";
       });

File diff suppressed because it is too large
+ 0 - 0
docs/service-worker.js


+ 1 - 1
themes/infusion/layouts/shortcodes/demo.html

@@ -40,7 +40,7 @@
         var demoContent = template.content;
         var standalone = window.open();
         script.textContent = standaloneScript;
-        standalone.document.body.appendChild(document.importNode(template.content, true));
+        standalone.document.body.appendChild(template.content.cloneNode(true));
         {{ if .Get "backgroundColor" }}
           standalone.document.body.style.backgroundColor = {{ .Get "backgroundColor" | safeCSS }};
         {{ end }}

Some files were not shown because too many files changed in this diff