The tidyNode class

Introduction

An HTML node in an HTML file, as detected by tidy.

Class synopsis

final tidyNode
/* Properties */
public readonly string $value;
public readonly string $name;
public readonly int $type;
public readonly int $line;
public readonly int $column;
public readonly bool $proprietary;
public readonly intnull $id;
public readonly arraynull $attribute;
public readonly arraynull $child;
/* Methods */
private __construct()
public tidyNodenull getNextSibling()
public tidyNodenull getParent()
public tidyNodenull getPreviousSibling()
public bool hasChildren()
public bool hasSiblings()
public bool isAsp()
public bool isComment()
public bool isHtml()
public bool isJste()
public bool isPhp()
public bool isText()

Properties

value

The HTML representation of the node, including the surrounding tags.

name

The name of the HTML node

type

The type of the node (one of the nodetype constants, e.g. TIDY_NODETYPE_PHP)

line

The line number at which the tags is located in the file

column

The column number at which the tags is located in the file

proprietary

Indicates if the node is a proprietary tag

id

The ID of the node (one of the tag constants, e.g. TIDY_TAG_FRAME)

attribute

An array of string, representing the attributes names (as keys) of the current node.

child

An array of tidyNode, representing the children of the current node.

Table of Contents