getAttributeNode

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

Returns the specified attribute of the specified element, as an Attr node.

MDN Reference