This page is In Progress

Notice: The WebPlatform project, supported by various stewards between 2012 and 2015, has been discontinued. This site is now available on github.

lookupNamespaceURI

Summary

Gets the URI of the namespace associated with a namespace prefix, if any.

Method of dom/Nodedom/Node

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