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