public function setAttributes($selector, array $attributes)
    {
        $nodes = $this->get($selector);

        foreach ($nodes as $node) {
            $node->setAttributes($attributes);
        }
    }
public function setAttributes($selector, array $attributes)
    {
        $nodes = $this->get($selector);

        foreach ($nodes as $node) {
            $node->setAttributes($attributes);
        }
    }
public function setAttributes ( $ selector , array $ attributes ) { $ nodes = $ this -> get ( $ selector ) ; foreach ( $ nodes as $ node ) { $ node -> setAttributes ( $ attributes ) ; } }
set a list of attributes

@param string $selector
@param array  $attributes
set a list of attributes