Browse Source

better shadow DOM missing error text

Heydon Pickering 8 years ago
parent
commit
2f7b09748f

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

@@ -452,7 +452,7 @@ toggle.addEventListener('click', (e) => {
         }
         }
         root.shadowRoot.appendChild(document.importNode(template.content, true));
         root.shadowRoot.appendChild(document.importNode(template.content, true));
       } else {
       } else {
-        root.innerHTML = '<p class="site-error"><strong style="font-weight:bold">Site error:</strong> Shadow DOM is needed to display encapsulated demos. The browser does not have an issue with the demo code itself.</p>';
+        root.innerHTML = '<p class="site-error"><strong style="font-weight:bold">Site error:</strong> A browser supporting Shadow DOM is needed to run encapsulated demos. The browser does not have an issue with the demo code itself.</p>';
       }
       }
     })();
     })();
   </script>
   </script>

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

@@ -1711,7 +1711,7 @@ toggle.addEventListener('click', (e) => {
         }
         }
         root.shadowRoot.appendChild(document.importNode(template.content, true));
         root.shadowRoot.appendChild(document.importNode(template.content, true));
       } else {
       } else {
-        root.innerHTML = '<p class="site-error"><strong style="font-weight:bold">Site error:</strong> Shadow DOM is needed to display encapsulated demos. The browser does not have an issue with the demo code itself.</p>';
+        root.innerHTML = '<p class="site-error"><strong style="font-weight:bold">Site error:</strong> A browser supporting Shadow DOM is needed to run encapsulated demos. The browser does not have an issue with the demo code itself.</p>';
       }
       }
     })();
     })();
   </script>
   </script>

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


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

@@ -25,7 +25,7 @@
         }
         }
         root.shadowRoot.appendChild(document.importNode(template.content, true));
         root.shadowRoot.appendChild(document.importNode(template.content, true));
       } else {
       } else {
-        root.innerHTML = '<p class="site-error"><strong style="font-weight:bold">Site error:</strong> Shadow DOM is needed to display encapsulated demos. The browser does not have an issue with the demo code itself.</p>';
+        root.innerHTML = '<p class="site-error"><strong style="font-weight:bold">Site error:</strong> A browser supporting Shadow DOM is needed to run encapsulated demos. The browser does not have an issue with the demo code itself.</p>';
       }
       }
     })();
     })();
   </script>
   </script>

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