getAttributeNodeNS
Summary
Gets an attribute node that matches the specified namespace and name.
Method of dom/Elementdom/Element
Syntax
var attributeNode = element.getAttributeNodeNS(namespace, name);
Parameters
namespace
- Data-type
- String
The namespace URI that defines the desired attribute, or a null value.
name
- Data-type
- Blob
The name of the desired attribute, or a null value.
Return Value
Returns an object of type DOM NodeDOM Node
An attribute node that matches the specified namespace and attribute name, or a null value when no attribute node is found.
Related specifications
- DOM Level 3 Core
- Recommendation
Attributions
Microsoft Developer Network: [Windows Internet Explorer API reference Article]