The HTMLTemplateElement
interface enables access to the contents of an HTML <template>
element.
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.
Methods
This interface inherits the methods of HTMLElement
.
Specifications
Specification | Status | Comment |
---|---|---|
HTML Living Standard The definition of 'HTMLTemplateElement interface' in that specification. |
Living Standard | |
HTML5 The definition of 'HTMLTemplateElement interface' in that specification. |
Recommendation | Initial definition |
Browser compatibility
BCD tables only load in the browser