TDOMNode.LookupNamespaceURI function
Locates the NameSpace URI for the specified Prefix.
Declaration
function LookupNamespaceURI(const APrefix: DOMString): DOMStringArguments
APrefix | Prefix to locate in the Namespace Information for the DOM Node. |
Function result
The Namespace URI for the specified Prefix, or an empty string.
Description
LookupNamespaceURI is a
DOMString function used to get
the
NamespaceURI associated with the
Prefix specified
in the
APrefix argument. LookupNamespaceURI implements the method
for the DOM Node interface as specified in the DOM Level 3 specification.
LookupNamespaceURI ensures that the DOM node uses the ELEMENT_NODE
node type required for namespace support. If the node is not a DOM Element
(TDOMElement), the ancestor nodes are checked for a
TDOMDocument or TDOMAttrib node which can supply the
namespace information.
LookupNamespaceURI compares the value in the Prefix property to
the argument in APrefix. When a match is found, the
NamespaceURI for the node is used as the return value. When a
namespace is not found for the prefix, the return value is an empty DOMString
('').
See also
An experiment, built from development snapshots. Not the official Free Pascal or Lazarus documentation.
