public hasAttributeNS(namespaceURI as String, localName as String) as Boolean throws DOMException
Indicates whether a namespace-aware attribute exists.
True when the attribute exists.
print(element.hasAttributeNS(null, "id"))