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

TDOMText

[Properties (by Name)] [Methods (by Name)] [Events (by Name)]

Implements the DOM Text interface from the DOM specification.

Declaration

Source position: laz2_dom.pas line 664

type TDOMText = class(TDOMCharacterData)

protected

  function GetNodeType; override;

  

Gets the value for the NodeType property.

  function GetNodeName; override;

  

Gets the value for the NodeName property.

  procedure SetNodeValue(); override;

  

Sets the value for the NodeValue property.

public

  function CloneNode(); override; overload;

  

Makes a copy of the DOM Node.

  function SplitText();

  

Splits the textual content at the specified offset into a new DOM Text node.

  function IsElementContentWhitespace;

  

Indicates if the textual content for the node is whitespace characters.

end;

Inheritance

TDOMText

  

Implements the DOM Text interface from the DOM specification.

|

TDOMCharacterData

  

Implements the CharacterData interface from the DOM specification.

|

TDOMNode

  

Implements the DOM Node interface.

|

TObject

Description

TDOMText is a TDOMCharacterData descendant that implements the DOM Text interface from the DOM specification. TDOMText represents the textual content (called character data in XML) for a DOM Element or Attribute. It provides overridden methods which implement the NodeName and NodeValue properties as required for the DOM Node specialization.

Adjacent TDOMText nodes may be combined when the Normalize method is called for the ParentNode, and Text nodes with only whitespace in their content may be removed. This is the case when the DOM node has the value nfIgnorableWS in its Flags property.

See also

TDOMCharacterData

  

Implements the CharacterData interface from the DOM specification.

TDOMNode.Normalize

  

Normalizes text nodes and attributes in the Node sub-tree.

TDOMNode.Flags

  

Provides access to the Node Flags for the DOM Node.

TNodeFlags

  

Set type used to store TNodeFlagEnum values.

TNodeFlagEnum

  

Enumeration with flag values for DOM Nodes.


Version 3.2 Generated 2024-02-25 Home