HTMLTemplateElement - Web APIs | MDN

Instance properties

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.

Instance methods

This interface inherits the methods of HTMLElement.

Specifications

Specification
HTML
# htmltemplateelement

Browser compatibility

Help improve MDN

Learn how to contribute

This page was last modified on by MDN contributors.