Availability
DOM Level 2 Core
Synopsis
boolean hasAttributes( );Returns
true if this node has one or more attributes;
false if it has none. Note that only Element nodes
can have attributes.
See Also
Element.getAttribute( ), Element.hasAttribute( ), Node.attributes