Sign in Join
FPDoc Onlineexperiment

TDOMNode.baseURI property

Member of TDOMNodepublicIn unit Laz2_DOM

Provides the BaseURI for the node relative to its Owner document.

Declaration

pascal
property baseURI: DOMString read GetBaseURI;

Description

BaseURI is a read-only DOMString property with the Base Universal Resource Identifier (URI) for the node relative to its context.

BaseURI is specified in the DOM Level 3 Specification. It is not defined in the DOM Level 2 APIs. The implementation in TDOMNode is incomplete as per the DOM Level 3 specification.

In the DOM specification, BaseURI is a dynamically computed value starting with the xml:base attribute for a given document. It includes the DocumentURI for the owner document, and should also include the node path to the current node.

In TDOMNode, BaseURI is resolved to the DocumentURI in the OwnerDocument when the node type is a document node or a processing instruction. It does not include the xml:base attribute that may (or may not ) be present in the owner document.

For all other node types, the property value is an empty string ('').

See also

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