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

x/evt/lib/index.ts>dom.ChildNode

💧EventEmitter's typesafe replacement
Go to Latest
interface dom.ChildNode
implements Node
import { type dom } from "https://deno.land/x/evt@v2.4.22/lib/index.ts";
const { ChildNode } = dom;

Methods

after(...nodes: (Node | string)[]): void

Inserts nodes just after node, while replacing strings in nodes with equivalent Text nodes.

Throws a "HierarchyRequestError" DOMException if the constraints of the node tree are violated.

before(...nodes: (Node | string)[]): void

Inserts nodes just before node, while replacing strings in nodes with equivalent Text nodes.

Throws a "HierarchyRequestError" DOMException if the constraints of the node tree are violated.

remove(): void

Removes node.

replaceWith(...nodes: (Node | string)[]): void

Replaces node with nodes, while replacing strings in nodes with equivalent Text nodes.

Throws a "HierarchyRequestError" DOMException if the constraints of the node tree are violated.