Skip to main content
Module

x/deno_dom/deno-dom-wasm.ts>DocumentFragment

Browser DOM & HTML parser in Deno
Extremely Popular
Go to Latest
class DocumentFragment
extends Node
Re-export
import { DocumentFragment } from "https://deno.land/x/deno_dom@v0.1.33-alpha/deno-dom-wasm.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)[])