hasAttributeNS method

bool hasAttributeNS(
  1. String? namespace,
  2. String localName
)

The hasAttributeNS() method of the Element interface returns a boolean value indicating whether the current element has the specified attribute with the specified namespace.

If you are working with HTML documents and you don't need to specify the requested attribute as being part of a specific namespace, use the Element.hasAttribute method instead.

Implementation

external bool hasAttributeNS(
  String? namespace,
  String localName,
);