Hi there! Are you looking for the official Deno documentation? Try docs.deno.com for all your Deno learning needs.

ChildNode

interface ChildNode extends Node {
after(...nodes: (Node | string)[]): void;
before(...nodes: (Node | string)[]): void;
remove(): void;
replaceWith(...nodes: (Node | string)[]): void;
}

§Extends

§Methods

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

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
[src]

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
[src]

Removes node.

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

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.