The hasAttributeNS of Element for JS returns true if element has an attribute whose namespace is namespace and local name is localName.
element.hasAttributeNS(namespace, localName)
A null or a non-empty string.
A local name.
attachShadow
classList
className
closest
getAttribute
getAttributeNames
getAttributeNS
hasAttribute
hasAttributes
id
innerHTML
insertAdjacentHTML
localName
matches
namespaceURI
outerHTML
prefix
removeAttribute
removeAttributeNS
setAttribute
setAttributeNS
shadowRoot
slot
tagName
toggleAttribute
Web Hypertext Application Technology Working Group (WHATWG)