code: function removeRange(from, to) {
        var pos = from ? from.nextSibling : self.container.firstChild;
        while (pos != to) {
          var temp = pos.nextSibling;
          removeElement(pos);
          pos = temp;
        }
      }
docs: Remove all nodes in the DOM tree between from and to (null for start/end of container).