public hasAttributeNS(namespaceURI as String, localName as String) as Boolean throws DOMException
Indicates whether a namespace-aware attribute exists.
| Parameter | Description |
|---|---|
namespaceURI | Namespace URI. |
localName | Attribute local name. |
True when the attribute exists.
print(element.hasAttributeNS(null, "id"))