Element.swapNode

Element swapNode(Element child, Element replacement)

swaps one child for a new thing. Returns the old child which is now parentless.