Module

x/lume/deps/dom.ts>HTMLTemplateElement

🔥 Static site generator for Deno 🦕
Very Popular
Latest
class HTMLTemplateElement
extends Element
import { HTMLTemplateElement } from "https://dotland.deno.dev/x/lume@v2.4.2/deps/dom.ts";

Constructors

new
HTMLTemplateElement(
parentNode: Node | null,
attributes: [string, string][],
key: CTOR_KEY,
)

Properties

private
__contentIsSet: boolean

This blocks access to the .#contents property when the super() constructor is running which invokes (our overridden) _setParent() method. Without it, we get the following error thrown:

TypeError: Cannot read private member #content from an object whose class did not declare it

FIXME: Maybe find a cleaner way to do this

readonly
content: DocumentFragment
innerHTML: string
readonly
outerHTML: string
import HTMLTemplateElement
import { HTMLTemplateElement } from "https://dotland.deno.dev/x/lume@v2.4.2/deps/dom.ts";