getAttributeNode

open external fun getAttributeNode(qualifiedName: String): Attr?(source)

The getAttributeNode() method of the Element interface returns the specified attribute of the specified element, as an Attr node. It returns null if the element doesn't have an attribute with the given name.

MDN Reference