The OpenD Programming Language

Element.stealChildren

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

class Element
stealChildren
out (ret) { assert (e.children.length == 0); version (none) debug foreach (child; ret) { assert (child.parentNode is this); assert (child.parentDocument is this.parentDocument); } }

Parameters

e Element

the element whose children you want to steal

position Element

an 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.

Meta