public function remove()
    {
        foreach ($this as $node) {
            /**
             * @var \DOMNode $node
             */
            if ($node->parentNode instanceof \DOMElement) {
                $node->parentNode->removeChild($node);
            }
        }
        $this->clear();
    }
public function remove()
    {
        foreach ($this as $node) {
            /**
             * @var \DOMNode $node
             */
            if ($node->parentNode instanceof \DOMElement) {
                $node->parentNode->removeChild($node);
            }
        }
        $this->clear();
    }
public function remove ( ) { foreach ( $ this as $ node ) { /**
             * @var \DOMNode $node
             */ if ( $ node -> parentNode instanceof \ DOMElement ) { $ node -> parentNode -> removeChild ( $ node ) ; } } $ this -> clear ( ) ; }
Remove the set of matched elements from the DOM.

(as opposed to Crawler::clear() which detaches the nodes only from Crawler
but leaves them in the DOM)

@api
Remove the set of matched elements from the DOM .