replaceChildren
The Document.replaceChildren() method replaces the existing children of a Document with a specified new set of children.
The Document.replaceChildren() method replaces the existing children of a Document with a specified new set of children.