org.w3c.dom.Element.hasAttributeNS
method

    public hasAttributeNS(namespaceURI as String, localName as String) as Boolean throws DOMException

Description

Indicates whether a namespace-aware attribute exists.

Parameters

Parameter | Description
--- | ---
`namespaceURI` | Namespace URI.
`localName` | Attribute local name.

Returns

True when the attribute exists.

Throws

- DOMException if lookup fails.

Example

    print(element.hasAttributeNS(null, "id"))