Element.replaceChild

Replaces the given element with a whole group.

  1. Element replaceChild(Element find, Element replace)
  2. void replaceChild(Element find, Element[] replace)
    class Element
    void
    replaceChild
    out { assert (find.parentNode is null); assert (children.length >= replace.length); debug foreach (child; children) assert (child !is find); debug foreach (r; replace) assert (r.parentNode is this); }

Meta