Baseline Widely available *
The HTMLTemplateElement
interface enables access to the contents of an HTML <template>
element.
Note: An HTML parser can create either an HTMLTemplateElement
or a ShadowRoot
when it parses a <template>
element, depending on the <template>
attributes. If an HTMLTemplateElement
is created the "shadow" attributes are reflected from the template. However these are not useful, because an HTMLTemplateElement
is not a shadow root and cannot subsequently be changed to a shadow root.
This interface inherits the properties of HTMLElement
.
content
Read only
A read-only DocumentFragment
which contains the DOM subtree representing the <template>
element's template contents.
shadowRootMode
A string that reflects the value of the shadowrootmode
attribute of the associated <template>
element.
shadowRootDelegatesFocus
A boolean that reflects the value of the shadowrootdelegatesfocus
attribute of the associated <template>
element.
shadowRootClonable
A boolean that reflects the value of the shadowrootclonable
attribute of the associated <template>
element.
shadowRootSerializable
A boolean that reflects the value of the shadowrootserializable
attribute of the associated <template>
element.
This interface inherits the methods of HTMLElement
.
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.3