getAttributeNodeNS method

Attr? getAttributeNodeNS(
  1. String? namespace,
  2. String localName
)

The getAttributeNodeNS() method of the Element interface returns the namespaced Attr node of an element.

This method is useful if you need the namespaced attribute's instance properties. If you only need the namespaced attribute's value, you can use the Element.getAttributeNS method instead.

If you need the Attr node of an element in HTML documents and the attribute is not namespaced, use the Element.getAttributeNode method instead.

Implementation

external Attr? getAttributeNodeNS(
  String? namespace,
  String localName,
);