Element.swapNode

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

class Element
swapNode
out (ret) { assert (ret is child); assert (ret.parentNode is null); assert (replacement.parentNode is this); assert (replacement.parentDocument is this.parentDocument); }

Meta