Element.replaceWith(replacement1, replacement2, ...)
prefer over replaceChild - replaces element with specified replacement(s)Node.replaceChild(newChild, oldChild)
really odd syntax. New child is specified firstElement.replaceChildren(replacement1, replacement2, ...)
clears all existing children and replaces them with the specified element(s)