diff --git a/source b/source index d99b6a4652e..cc2a9b7a388 100644 --- a/source +++ b/source @@ -59047,6 +59047,7 @@ interface HTMLTemplateElement : HTMLElement { [HTMLConstructor] constructor(); readonly attribute DocumentFragment content; + readonly attribute ShadowRoot? shadowRoot; };
HTMLTemplateElement
.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:
@@ -59193,6 +59203,9 @@ interface HTMLTemplateElement : HTMLElement { property is true, then thecontent
attribute must return
null instead.
+ The shadowroot
IDL attribute must return
+ its base Element's shadowroot value.
+
The cloning steps for a template