HTML DOM namespaceURI property
Examples
Back XHTML document namespace URI:
document.documentElement.namespaceURI;
Output:
http://www.w3.org/1999/xhtml
try it"
Definition and Usage
namespaceURI property returns the selected node is the namespace URI.
Note: namespace element nodes inherit the parent node, therefore, XHTML document all elements of the namespace URI is "http://www.w3.org/1999/xhtml".
Browser Support
All major browsers support namespaceURI property
Note: Internet Explorer 8 and earlier versions of IE does not support this property.
grammar
node .namespaceURI
technical details
return value: | String representing the node URI namespace. |
---|---|
DOM version | Core Level 2 Node Object |