Description | Hierarchy | Fields | Methods | Properties |
type tNodeInfo = class(TObject)
Dynamic structure used to pass information to a ForEachNode callback.
The tNodeInfo class is used to pass information about a TidyNode from the ForEachNode() procedure to its tNodeCallback procedure.
This object is created, initialized, and destroyed automatically by the ForEachNode() procedure.
You should never need to create an instance of this object directly.
constructor Create(aDoc:pTidyDoc); |
|
destructor Destroy; override; |
property Proceed: boolean (read/write); |
|
property Doc: pTidyDoc (read-only); |
|
property Node: pTidyNode (read-only); |
|
property Next: pTidyNode (read-only); |
|
property Prev: pTidyNode (read-only); |
|
property Child: pTidyNode (read-only); |
|
property Parent: pTidyNode (read-only); |
|
property Attr: pTidyAttr (read-only); |
|
property Kind: TidyNodeType (read-only); |
|
property Tag: TidyTagId (read-only); |
|
property Row: uint (read-only); |
|
property Col: uint (read-only); |
|
property Name: pChar (read-only); |
|
property Text: pChar (read-only); |
|
property Content: pChar (read-only); |
|
property StartTag: pChar (read-only); |
|
property EndTag: pChar (read-only); |
|
property Level: LongInt (read-only); |
|
property EndTagRule: tEndTagRule (read-only); |
|
property DetectedXml: boolean (read-only); |
constructor Create(aDoc:pTidyDoc); |
|
Used internally by ForEachNode() to create a new tNodeInfo instance, which will then be passed to the callback. |
destructor Destroy; override; |
|
Used internally by ForEachNode() to destroy the tNodeInfo instance, after all callbacks have returned. |
property Doc: pTidyDoc (read-only); |
|
The TidyDoc instance that was passed to the ForEachNode procedure |
property Node: pTidyNode (read-only); |
|
The currently indexed node in the ForEachNode procedure's loop. |
property Next: pTidyNode (read-only); |
|
The next sibling node relative to the current node. |
property Prev: pTidyNode (read-only); |
|
The previous sibling node relative to the current node. |
property Child: pTidyNode (read-only); |
|
The first child node of the current node. |
property Parent: pTidyNode (read-only); |
|
The parent node of the current node. |
property Attr: pTidyAttr (read-only); |
|
Opaque list of name=value pairs of the current element attributes, or You can access the individual attributes in the list by calling the TidyLib attribute functions directly, or by using the ForEachAttr() procedure. |
property Kind: TidyNodeType (read-only); |
|
The TidyNodeType of the current node. |
property Tag: TidyTagId (read-only); |
|
The TidyTagId of the current node. |
property Col: uint (read-only); |
|
The one-based character offset (column) into the line where the current node starts. ( See also, the note about character positions in the tNodeInfo.Row property. ) |
property Text: pChar (read-only); |
|
The text of the current node for nodes such as text, scripts or cdata. It is |
property Content: pChar (read-only); |
|
The concatenated text and tags of all child nodes of the current node, a la "innerHtml" |
property StartTag: pChar (read-only); |
|
The text of the current opening tag, e.g. ( NIL for text nodes ) |
property EndTagRule: tEndTagRule (read-only); |
|
The HTML rule regarding the presence of an end tag for this element. Can be one of Note that in XHTML, there is no such thing as an "optional" end tag, consider etOptional the same as etRequired for XHTML. |
property DetectedXml: boolean (read-only); |
|
True if the parser found an XML declaration in the document, or if other semantics indicate the document is XML or XHTML. |