Sign in Join
FPDoc Onlineexperiment

TDOMNode.HasChildNodes function

Member of TDOMNodepublicIn unit Laz2_DOM

Indicates if the DOM node has child nodes.

Declaration

pascal
function HasChildNodes: Boolean; virtual

Function result

True when the size of the ChildNodes list is not zero.

Description

HasChildNodes is a Boolean function which indicates if the DOM node has child nodes. In general, the return value is True when a DOM node has been assigned to the FirstChild property.

HasChildNodes always returns False in TDOMNode. TDOMNode does not allocate storage for child nodes. The method must be overridden in a descendent class which allocates storage for child nodes in the DOM node specialization.

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