getNamedItem

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

The getNamedItem() method of the NamedNodeMap interface returns the Attr corresponding to the given name, or null if there is no corresponding attribute.

MDN Reference