The replaceNode method replaces the object with another element. When a node is replaced, all values that are associated with the replaced object are removed. The replaceNode method is accessible at run time. If elements are removed at run time before the closing tag is parsed, areas of the document might not render.
An element that specifies the new element to replace the object.
Returns a reference to the removed object.