pQuery\DomNode::addAttribute PHP Method

addAttribute() public method

Add new attribute
public addAttribute ( string $attr, string $val )
$attr string
$val string
    function addAttribute($attr, $val)
    {
        $this->setAttribute($attr, $val, 'total', true);
    }
DomNode