getAttributeNode method
Retrieves an attribute node by name.
To retrieve an attribute node by qualified name and namespace URI, use the getAttributeNodeNS method.
getAttributeNode(name )
Parameters
String name
The name (nodeName) of the attribute to retrieve.
Returns
Attr. The Attr node with the specified name (nodeName) or null if there is no such attribute.
¿Fue esto útil?