hasAttributeNS

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

Returns true if element has an attribute whose namespace is namespace and local name is localName.

MDN Reference