localName
Summary
Retrieves the local name of the fully qualified XML declaration for a node.
Syntax
Note: This property is read-only.
var localName = node.localName;
Return Value
Returns an object of type StringString
The local name portion of the qualified name of the node.
Usage
In XML documents, elements can be declared using qualified names, which consist of a prefix and a local name. This property returns the latter value.
For more information, see W3C Namespaces in XML.
Notes
Must be served with XML content type, such as text/xml or application/xhtml+xml
Related specifications
- DOM Level 3 Core
- Recommendation
Attributions
Mozilla Developer Network : [Node.localName Article]
Microsoft Developer Network: [localName Property Article]