Return True if the element has an attribute named by name.
xml.dom/Element.hasAttribute
Element.hasAttribute