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

TDOMElement.IsEmpty

Indicates if the DOM Element does not have any content.

Declaration

Source position: laz2_dom.pas line 633

public function TDOMElement.IsEmpty: Boolean; virtual;

Function result

True when the DOM Element is empty.

Description

IsEmpty is a Boolean function used to determine if the DOM element does not have any content. The return value is True when Attributes has not been assigned (contains Nil) or has a Length / Count of 0.

Remark: Technically, this implementation is incorrect. An empty element is one which has no child Text or Element nodes. And, an empty element can have attributes values (default or specified). Use HasChildNodes instead.

Version 3.2 Generated 2024-02-25 Home