hasAttributeNS

fun hasAttributeNS(namespace: String?, localName: String): Boolean(source)

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

MDN Reference