public function attr($attr) {
		if($this->domnode === null)
			return null;
		return $this->domnode->getAttribute($attr);
	}
public function attr($attr) {
		if($this->domnode === null)
			return null;
		return $this->domnode->getAttribute($attr);
	}
public function attr ( $ attr ) { if ( $ this -> domnode === null ) return null ; return $ this -> domnode -> getAttribute ( $ attr ) ; }
Returns an attribute of the node.

@param string attr The attribute name.

@return string
Returns an attribute of the node .