Get the Newsletter

replaceNode

A Method

replaceNode(newNode: Node, node: Node, parentNode?: Node): void

Replaces a node in the parent with a new node.

Parameters

newNode: Node
The node to replace the old node with.
node: Node
The node that is being replaced.
parentNode?: Node
The node that the current node is parented to.