Module

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

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