W3cubDocs

/DOM

HTMLTemplateElement

The HTMLTemplateElement interface enables access to the contents of an HTML <template> element.

Properties

This interface inherits the properties of HTMLElement.

HTMLTemplateElement.contentRead only
DocumentFragment: Returns the <template> element's template contents.

Methods

This interface inherits the methods of HTMLElement.

Specifications

Browser compatibilityUpdate compatibility data on GitHub

Desktop
Chrome Edge Firefox Internet Explorer Opera Safari
Basic support 26 13 22 No 15 8
content 26 13 22 No 15 8
Mobile
Android webview Chrome for Android Edge Mobile Firefox for Android Opera for Android iOS Safari Samsung Internet
Basic support Yes 26 Yes 22 ? 8 Yes
content Yes 26 Yes 22 ? 8 Yes

© 2005–2018 Mozilla Developer Network and individual contributors.
Licensed under the Creative Commons Attribution-ShareAlike License v2.5 or later.
https://developer.mozilla.org/en-US/docs/Web/API/HTMLTemplateElement