PHPHtmlParser\Dom\AbstractNode::getAttributes PHP Method

getAttributes() public method

A wrapper method that simply calls the getAttribute method on the tag of this node.
public getAttributes ( ) : array
return array
    public function getAttributes()
    {
        $attributes = $this->tag->getAttributes();
        foreach ($attributes as $name => $info) {
            $attributes[$name] = $info['value'];
        }
        return $attributes;
    }