AvailabilityDOM Level 2 Core Synopsisboolean hasAttributes( ); Returnstrue if this node has one or more attributes; false if it has none. Note that only Element nodes can have attributes. See AlsoElement.getAttribute( ), Element.hasAttribute( ), Node.attributes |