lookupNamespaceURI
Summary
Gets the URI of the namespace associated with a namespace prefix, if any.
Syntax
var namespaceURI = node.lookupNamespaceURI(/* see parameter list */);
Parameters
prefix
- Data-type
- String
The prefix, or null.
Return Value
Returns an object of type StringString
The URI of the namespace for prefix. null if no namespace is found for prefix. The default namespace if prefix is null.
Related specifications
- DOM Level 3 Core
- Recommendation
Attributions
Mozilla Developer Network : [Node.namespaceURI Article]
Microsoft Developer Network: [namespaceURI Property Article]