ChildNodeinterface ChildNode extends Node {after(...nodes: (Node | string)[]): void;before(...nodes: (Node | string)[]): void;remove(): void;replaceWith(...nodes: (Node | string)[]): void;}§Extends§Node[src]§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.