Module

x/lume/deps/dom.ts>DocumentFragment

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

Constructors

new
DocumentFragment()

Properties

readonly
childElementCount: number
readonly
children: HTMLCollection
readonly
firstElementChild: Element | null
readonly
lastElementChild: Element | null

Methods

append(...nodes: (Node | string)[])
getElementById(id: string): Element | null
prepend(...nodes: (Node | string)[])
querySelector(selectors: string): Element | null
querySelectorAll(selectors: string): NodeList
replaceChildren(...nodes: (Node | string)[])
import DocumentFragment
import { DocumentFragment } from "https://dotland.deno.dev/x/lume@v2.4.2/deps/dom.ts";