Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

x/deno_dom/deno-dom-wasm-noinit.ts>CharacterData

Browser DOM & HTML parser in Deno
Very Popular
Go to Latest
class CharacterData
extends Node
import { CharacterData } from "https://deno.land/x/deno_dom@v0.1.36-alpha/deno-dom-wasm-noinit.ts";

Constructors

new
CharacterData(
data: string,
nodeName: string,
nodeType: NodeType,
parentNode: Node | null,
key: CTOR_KEY,
)

Properties

data: string
readonly
length: number
nodeValue: string
textContent: string

Methods

after(...nodes: (Node | string)[])
before(...nodes: (Node | string)[])
replaceWith(...nodes: (Node | string)[])
type alias CharacterData
import { type CharacterData } from "https://deno.land/x/deno_dom@v0.1.36-alpha/deno-dom-wasm-noinit.ts";
variable CharacterData
import { CharacterData } from "https://deno.land/x/deno_dom@v0.1.36-alpha/deno-dom-wasm-noinit.ts";

type

Pick<ConstructibleCharacterData, keyof ConstructibleCharacterData> & Function