code: def _detach_childs(self, idx_from=None, idx_to=None):
          
          idx_from = idx_from or 0
          idx_to = idx_to or len(self.childs)
          removed = self.childs[idx_from:idx_to]
          for child in removed:
              if issubclass(child.__class__, DOMElement):
                  child.parent = None
          self.childs[idx_from:idx_to] = []
          return removed
docs: Moves all the childs to a new father