Sign in Join
FPDoc Onlineexperiment

TDOMText class

In unit Laz2_DOM

Implements the DOM Text interface from the DOM specification.

Declaration

pascal
TDOMText = class(TDOMCharacterData)

Inheritance

  1. TDOMText
  2. TDOMCharacterData
  3. TDOMNode

Descends from it: TDOMCDATASection

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

Methods

GetNodeTypeprotectedGets the value for the NodeType property.
GetNodeNameprotectedGets the value for the NodeName property.
SetNodeValueprotectedSets the value for the NodeValue property.
CloneNodepublicMakes a copy of the DOM Node.
SplitTextpublicSplits the textual content at the specified offset into a new DOM Text node.
IsElementContentWhitespacepublicIndicates if the textual content for the node is whitespace characters.

Inherited

From TDOMCharacterData (9)

AppendData Data DeleteData GetLength GetNodeValue InsertData Length ReplaceData SubstringData

From TDOMNode (57)

AppendChild Attributes baseURI Changing ChildNodes CompareName Create Destroy DetachChild FindNode FirstChild Flags FreeInstance GetAttributes GetBaseURI GetChildCount GetChildNodes GetEnumerator GetEnumeratorAllChildren GetFirstChild GetLastChild GetLastLeaf GetLevel GetLocalName GetNamespaceURI GetNextNode GetNextNodeSkipChildren GetOwnerDocument GetPrefix GetPreviousNode GetRevision GetTextContent HasAttributes HasChildNodes InsertBefore IsDefaultNamespace IsSupported LastChild LocalName LookupNamespaceURI LookupPrefix NamespaceURI NextSibling NodeName NodeType NodeValue Normalize OwnerDocument ParentNode Prefix PreviousSibling RemoveChild ReplaceChild SetPrefix SetReadOnly SetTextContent TextContent

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