TIDYNODE(3) 1 TIDYNODE(3)
The tidyNode class
INTRODUCTION
An HTML node in an HTML file, as detected by tidy.
CLASS SYNOPSIS
tidyNode
tidyNode
Properties
o
string$value
o
string$name
o
int$type
o
int$line
o
int$column
o
bool$proprietary
o
int$id
o
array$attribute
o
array$child
Methods
o
tidyNode tidyNode::getParent (void )
o
bool tidyNode::hasChildren (void )
o
bool tidyNode::hasSiblings (void )
o
bool tidyNode::isAsp (void )
o
bool tidyNode::isComment (void )
o
bool tidyNode::isHtml (void )
o
bool tidyNode::isJste (void )
o
bool tidyNode::isPhp (void )
o
bool tidyNode::isText (void )
PROPERTIES
o $value
-The HTML representation of the node, including the surrounding tags.
o $name
-The name of the HTML node
o $type
-The type of the tag (one of the constants above, e.g. TIDY_NODETYPE_PHP)
o $line
-The line number at which the tags is located in the file
o $column
-The column number at which the tags is located in the file
o $proprietary
-Indicates if the node is a proprietary tag
o $id
-The ID of the tag (one of the constants above, e.g. TIDY_TAG_FRAME)
o $attribute
- An array of string, representing the attributes names (as keys) of the current node.
o $child
- An array of tidyNode, representing the children of the current node.
+--------+--------------------------------------------+
|Version | |
| | |
| | Description |
| | |
+--------+--------------------------------------------+
| 5.1.0 | |
| | |
| | $line, $column and $proprietary were added |
| | |
+--------+--------------------------------------------+
PHP Documentation Group TIDYNODE(3)