Programmer's Guide > Interfaces > W3C Element interface > getAttributeNodeNS method
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.
これは役に立ちましたか?