HTMLTemplateElement: shadowRootSerializable property
Baseline 2024Newly available
Since September 2024, this feature works across the latest devices and browser versions. This feature might not work in older devices or browsers.
TheshadowRootSerializable property reflects the value of theshadowrootserializable attribute of the associated<template> element.
Note that this property is not useful for developers.If a<template> element is used to declaratively create aShadowRoot, then this object and property do not exist.Otherwise, if anHTMLTemplateElement 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.
In this article
Value
Reflects the value of theshadowrootserializable attribute of the associated<template> element.
Specifications
| Specification |
|---|
| HTML> # dom-template-shadowrootserializable> |
Browser compatibility
See also
shadowrootserializableattribute of the<template>elementShadowRoot.serializable