public function removeAttribute($name)
    {
        foreach ($this as $node) {
            if ($node instanceof \DOMElement) {
                /** @var \DOMElement $node */
                if ($node->hasAttribute($name)) {
                    $node->removeAttribute($name);
                }
            }
        }
        return $this;
    }
public function removeAttribute($name)
    {
        foreach ($this as $node) {
            if ($node instanceof \DOMElement) {
                /** @var \DOMElement $node */
                if ($node->hasAttribute($name)) {
                    $node->removeAttribute($name);
                }
            }
        }
        return $this;
    }
public function removeAttribute ( $ name ) { foreach ( $ this as $ node ) { if ( $ node instanceof \ DOMElement ) { /** @var \DOMElement $node */ if ( $ node -> hasAttribute ( $ name ) ) { $ node -> removeAttribute ( $ name ) ; } } } return $ this ; }
Remove an attribute from each element in the set of matched elements.

@param string $name
@return HtmlPageCrawler
Remove an attribute from each element in the set of matched elements .