diff --git a/source b/source index 3516bfb712b..a87e396c194 100644 --- a/source +++ b/source @@ -58777,6 +58777,7 @@ interface HTMLTemplateElement : HTMLElement { [HTMLConstructor] constructor(); readonly attribute DocumentFragment content; + readonly attribute ShadowRoot? shadowRoot; };
Uses HTMLTemplateElement.
@@ -58795,6 +58796,15 @@ interface HTMLTemplateElement : HTMLElement { of the template element's content model, since its content model is defined as nothing.

+

The shadowRoot attribute on HTMLTemplateElement is present for feature detection + of declarative Shadow DOM:

+ +
<script>
+  function supportsDeclarativeShadowDOM() {
+    return HTMLTemplateElement.prototype.hasOwnProperty("shadowRoot");
+  }
+</script>
+

For example, consider the following document:

@@ -58922,6 +58932,9 @@ interface HTMLTemplateElement : HTMLElement { property is true, then the content attribute must return null instead.

+

The shadowroot IDL attribute must return + its base Element's shadowroot value. +


The cloning steps for a template