method
replaceWith

Node replaceWith(
Node otherNode
)

Replaces this node with another node.