Retrieves the local name of the fully qualified XML declaration for a node.
Note: This property is read-only.
var localName = node.localName;
Returns an object of type StringString
The local name portion of the qualified name of the node.
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.
Must be served with XML content type, such as text/xml or application/xhtml+xml
- DOM Level 3 Core