HTMLTemplateElement
Baseline Widely available
This feature is well established and works across many devices and browser versions. It’s been available across browsers since November 2015.
The HTMLTemplateElement interface enables access to the contents of an HTML <template> element.
Instance properties
This interface inherits the properties of HTMLElement.
contentRead only-
A read-only
DocumentFragmentwhich contains the DOM subtree representing the<template>element's template contents.
Instance methods
This interface inherits the methods of HTMLElement.
Specifications
| Specification |
|---|
| HTML Standard # htmltemplateelement |
Browser compatibility
| desktop | mobile | ||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
HTMLTemplateElement | |||||||||||
content | |||||||||||
shadowRootClonable | |||||||||||
shadowRootDelegatesFocus | |||||||||||
shadowRootMode | |||||||||||
shadowRootSerializable | |||||||||||