Sign in Join
FPDoc Onlineexperiment

TDOMNode.LookupPrefix function

Member of TDOMNodepublicIn unit Laz2_DOM

Locates the Prefix for the specified NameSpace URI.

Declaration

pascal
function 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

An experiment, built from development snapshots. Not the official Free Pascal or Lazarus documentation.