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.

localName

Summary

Retrieves the local name of the fully qualified XML declaration for a node.

Property of dom/Nodedom/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