TDOMNode.LocalName property
Name without the NameSpace prefix assigned to the DOM Node.
Declaration
property LocalName: DOMString read GetLocalName;Description
LocalName is a read-only
DOMString property with the
local part of the qualified name for the node. A qualified name consists of a
delimited namespace
Prefix and the name for the element or
attribute in the node. Local name contains only the element or attribute
name, without the Prefix for the namespace.
For the following Qualified Names:
- XML:ID
- XLink:href
The Prefix values are:
- XML
- XLink
The LocalName values are:
- ID
- href
For nodes other than ELEMENT_NODE (TDOMELement) and ATTRIBUTE_NODE (TDOMAttr), and nodes created with a DOM Level 1 method, such as createElement from the Document interface, the property value is is always an empty DOMString.
The property value is always an empty DOMString value in TDOMNode. In a descendent class (like TDOMNode_NS), it will contain the actual NodeName for an element or attribute.
An experiment, built from development snapshots. Not the official Free Pascal or Lazarus documentation.
