HTMLTemplateElement
Generated from idl/html.webidl when the site was built at 7aa23e2.
HTMLTemplateElement is an interface in idl/html.webidl, inheriting HTMLElement, exposed in Window. What it does is on MDN; this page says what niso has of it.
Status
Section titled “Status”The web features its members belong to, each with its Baseline status on the web and how much of the feature’s WPT suite passes in niso (see Web platform support).
| Feature | On the web | In niso | Members |
|---|---|---|---|
| <template> | Widely available | Partial 69% 715 of 1029 subtests pass | 2 |
Members
Section titled “Members”constructor
Section titled “constructor”[HTMLConstructor] constructor();content
Section titled “content”[SameObject] readonly attribute DocumentFragment content;int32_t niso_html_template_element_get_content(niso_dom* dom, niso_handle self, niso_handle* out);Not in niso yet
Section titled “Not in niso yet”Members the web has, by the BCD keys web-features 3.45.0 lists, that idl/ doesn’t declare. The list is partial: web-features lists only the keys it maps to a feature.
htmlFor(<template for>)shadowRootClonable(Declarative shadow DOM)shadowRootCustomElementRegistry(Scoped custom element registries)shadowRootDelegatesFocus(Declarative shadow DOM)shadowRootMode(Declarative shadow DOM)shadowRootReferenceTarget(Reference target)shadowRootSerializable(Declarative shadow DOM)shadowRootSlotAssignment(Declarative shadow DOM)