Sign in Join
FPDoc Onlineexperiment

TDOMNodeList.NodeFilter function

Member of TDOMNodeListprotectedIn unit Laz2_DOM

Determines if the node can be used in the DOM node list.

Declaration

pascal
function NodeFilter(aNode: TDOMNode): TFilterResult; virtual

Arguments

aNode

DOM Node to examine in the method.

Function result

Indicates if the node is included in the node list.

Description

NodeFilter is a TFilterResult function used to determine if the DOM node specified in ANode can be included in the DOM Node list. The return value indicates whether the node is allowed, and also whether its child nodes can be examined as well.

NodeFilter always returns frNoRecurseTrue in TDOMNodeList, and allows the node but does not allow recursion into its child nodes. The method is overridden in descendent classes to perform the actions needed for the DOM node specialization.

See also

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