createAttributeNS

fun createAttributeNS(namespace: String?, qualifiedName: String): Attr(source)

MDN Reference