소스 검색

template element method change

Heydon Pickering 8 년 전
부모
커밋
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";
       });

파일 크기가 너무 크기때문에 변경 상태를 표시하지 않습니다.
+ 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 }}

이 변경점에서 너무 많은 파일들이 변경되어 몇몇 파일들은 표시되지 않았습니다.