public function clear() {
    foreach ($this->nodes as $node) {
      if ($node instanceof ParentNode) {
        $node->clear();
      }
    }
    return $this;
  }
public function clear() {
    foreach ($this->nodes as $node) {
      if ($node instanceof ParentNode) {
        $node->clear();
      }
    }
    return $this;
  }
public function clear ( ) { foreach ( $ this -> nodes as $ node ) { if ( $ node instanceof ParentNode ) { $ node -> clear ( ) ; } } return $ this ; }
Remove all child nodes of the set of matched elements.

@return $this
Remove all child nodes of the set of matched elements .