Back to Content

HTMLTemplateElement: shadowRootCustomElementRegistry property

files/en-us/web/api/htmltemplateelement/shadowrootcustomelementregistry/index.md

latest1.3 KB
Original Source

{{APIRef("Web Components")}}

The shadowRootCustomElementRegistry property of the {{domxref("HTMLTemplateElement")}} interface reflects the value of the shadowrootcustomelementregistry attribute of the associated <template> element.

[!NOTE] This property is not useful for developers, and is only documented for completeness. If a <template> element is used to declaratively create a ShadowRoot, then this object and property do not exist. Otherwise, if an HTMLTemplateElement is created, the value of this property is irrelevant because the object is not a shadow root and cannot subsequently be changed to a shadow root.

Value

A string that reflects the shadowrootcustomelementregistry attribute of the associated <template> element.

Specifications

{{Specifications}}

Browser compatibility

{{Compat}}

See also

  • {{domxref("ShadowRoot.customElementRegistry")}}
  • {{domxref("HTMLTemplateElement.shadowRootMode")}}
  • {{domxref("CustomElementRegistry.CustomElementRegistry()", "CustomElementRegistry()")}} constructor
  • Using custom elements