[Overview][Constants][Types][Classes][Procedures and functions][Index] Reference for unit 'Laz2_DOM' (#lazutils)

TDOMNode.LookupPrefix

Locates the Prefix for the specified NameSpace URI.

Declaration

Source position: laz2_dom.pas line 297

public function TDOMNode.LookupPrefix(

  const nsURI: DOMString

):DOMString;

Arguments

nsURI

  

Namespace URI to locate in the Namespace information.

Function result

Prefix for the Namespace URI, or an empty string.

Description

LookupPrefix is a DOMString function used to locate the Prefix associated with the NameSpace URI specified in the nsURI argument. LookupPrefix implements the DOM Node interface specified in the DOM Level 3 specification.

In TDOMNode, the return value is always an empty DOMString (''). Descendent classes which implement a specific DOM Node specialization (like TDOMElement) will provide an InternalLookupPrefix method used to get the return value. The internal GetAncestorElement routine is used to find Prefix / Namespace associations in ancestor nodes.

See also

TDOMNode.NamespaceURI

  

URI for the NameSpace assigned to the DOM Node.

TDOMNode.Prefix

  

Prefix used for the assigned NameSpace in the DOM Node.

TDOMNode.NodeName

  

Name for the DOM node.

TDOMNode.LocalName

  

Name without the NameSpace prefix assigned to the DOM Node.

TDOMElement.InternalLookupPrefix

  

Gets the Namespace Prefix used for the specified Namespace URI.


Version 3.2 Generated 2024-02-25 Home