Web Components
The shadowRootCustomElementRegistry property of the 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 aShadowRoot, then this object and property do not exist. Otherwise, if anHTMLTemplateElementis 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
Browser compatibility
See also
- ShadowRoot.customElementRegistry
- HTMLTemplateElement.shadowRootMode
- CustomElementRegistry.CustomElementRegistry() constructor
- Using custom elements
来源:MDN Web Docs / Mozilla 贡献者 · 作者与贡献记录 · CC BY-SA 2.5。离线整理了版式、链接和媒体显示。
