The hasAttributeNS() method of the Element interface returns a boolean value indicating whether the current element has the specified attribute with the specified namespace.
hasAttributeNS()
MDN Reference
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