public abstract boolean hasAttribute (String name)

Returns true when an attribute with a given name is specified on this element or has a default value, false otherwise.

Parameters:
name    The name of the attribute to look for.

Returns:  true if an attribute with the given name is specified on this element or has a default value, false otherwise.

Since:  DOM Level 2