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.

* Some parts of this feature may have varying levels of support.

HTMLTemplateElement 인터페이스는 HTML <template> 엘리먼트의 컨텐츠에 접근할 수 있게 해줍니다.

must be a string

프로퍼티

이 인터페이스는 HTMLElement 의 프로퍼티를 상속받습니다.

HTMLTemplateElement.content읽기 전용

DocumentFragment: <template> 엘리먼트의 템플릿 컨텐츠를 반환합니다.

메소드

이 인터페이스는 HTMLElement 의 메소드를 상속받습니다.

명세

Specification
HTML
# htmltemplateelement

브라우저 호환성

Report problems with this compatibility data on GitHub
desktopmobile
Chrome
Edge
Firefox
Opera
Safari
Chrome Android
Firefox for Android
Opera Android
Safari on iOS
Samsung Internet
WebView Android
WebView on iOS
HTMLTemplateElement
content
shadowRootClonable
shadowRootDelegatesFocus
shadowRootMode
shadowRootSerializable

Legend

Tip: you can click/tap on a cell for more information.

Full support
Full support
No support
No support