Fixed a typehint

The methods hasAttribute and getAttribute only exist in DOMElement, not in
DOMNode.
Improved some phpdoc