[Overview][Constants][Types][Classes][Procedures and functions][Index] |
Locates the NameSpace URI for the specified Prefix.
Source position: laz2_dom.pas line 298
public function TDOMNode.LookupNamespaceURI( |
const APrefix: DOMString |
):DOMString; |
APrefix |
|
Prefix to locate in the Namespace Information for the DOM Node. |
The Namespace URI for the specified Prefix, or an empty string.
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 ('').
Remark: | This method is not fully compatible with the DOM Level 3 specification which allows the APrefix argument to contain a Null value. Lazarus cannot represent the DOMString type in that manner, so it uses an empty DOMString (''). |
|
Implements a DOM Node with Namespace support. |
|
|
Implements the DOM Element interface from the DOM specification. |
|
|
Implements a DOM Node for attributes with Namespace support. |
Version 3.2 | Generated 2024-02-25 | Home |