hasAttribute
Check if the node has an attribute.
Return
true if this node contains the specified attribute or false otherwise.
Parameters
name
Attribute's name.
Check if this node has an attribute with a specified value.
Return
true if this node contains the specified attribute with the specified value or falseif either this node has no such attribute or the attribute's value is different.
Parameters
name
Attribute's name.
value
Attribute's value.