MDN Web Docs

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.

shadowRootCustomElementRegistry

A string that reflects the value of the shadowrootcustomelementregistry attribute of the associated <template> element, indicating that the declarative shadow root will use a scoped CustomElementRegistry.

shadowRootSerializable

A boolean that reflects the value of the shadowrootserializable attribute of the associated <template> element.

shadowRootSlotAssignment

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

Instance methods

This interface inherits the methods of HTMLElement.

Specifications

Specification
HTML
# htmltemplateelement

Browser compatibility

Help improve MDN

Yes No

Learn how to contribute

This page was last modified on by MDN contributors.

Read the original on developer.mozilla.org ↗