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