Element.replaceChild

Replaces the element find, which must be a child of this, with the element replace, which must have no parent.

  1. Element replaceChild(Element find, Element replace)
    class Element
    replaceChild
    out (ret) { assert (ret is replace); assert (replace.parentNode is this); assert (replace.parentDocument is this.parentDocument); assert (find.parentNode is null); }
  2. void replaceChild(Element find, Element[] replace)

Meta