Module

x/deno_dom/deno-dom-native.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.45/deno-dom-native.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.45/deno-dom-native.ts";