This is the reverse of replaceWith.
Unlike jQuery, DOMQuery cannot assume a default document. Consequently,
you must specify the intended destination document. If it is omitted, the
present document is assumed to be tthe document. However, that can result
in undefined behavior if the selector and the replacement are not sufficiently
distinct.