pub fn replace_with(old_node: &Element, new_node: &Node)
Replace the old node with the new node in the DOM. See Element.replaceWith.
Element.replaceWith