getAttributeNodeNS method
Retrieves an Attr node by local name and namespace URI. HTML-only DOM implementations do not need to implement this method.
getAttributeNodeNS(namespaceURI, localName )
Parameters
String namespaceURI
The namespace URI of the attribute to retrieve.
String localName
The local name of the attribute to retrieve.
Returns
Attr. The Attr node with the specified attribute local name and namespace URI or null if there is no such attribute.
这对您有帮助吗?