Element.stealChildren

Element[] stealChildren(Element e, Element position = null)

Reparents all the child elements of e to this, leaving e childless.

Parameters

ethe element whose children you want to steal
positionan existing child element in this before which you want the stolen children to be inserted. If null, it will append the stolen children at the end of our current children.