Skip to main content
Using Deno in production at your company? Earn free Deno merch.
Give us feedback
Module

x/yxz/typing/lib.dom.ts>ChildNode

Deno Standard Extensions
Go to Latest
interface ChildNode
implements Node
import { type ChildNode } from "https://deno.land/x/yxz@0.17.0/typing/lib.dom.ts";

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.