The base class of all nodes, textual and otherwise, in an HTML document.
| Public Attributes |
| children |
The array of children of this node. Not all nodes have children.
|
| line |
The line number of the input where this node was begun
|
| parent |
The parent node of this node. All nodes have a parent, except for the root
node.
|
| position |
The byte position in the input where this node was begun
|
| Public Methods |
| == |
|
| find |
Search the children of this node for the first node for which #find returns
non nil. Returns the result of the #find call that succeeded.
|
| find_all |
Search for all nodes that match the given conditions, and return them as an
array.
|
| match |
Return false (subclasses must override this to provide specific matching
behavior.) conditions may be of any type.
|
| new |
Create a new node as a child of the given parent.
|
| parse |
|
| tag? |
Returns false. Subclasses may override this if they define a kind
of tag.
|
| to_s |
Return a textual representation of the node.
|
| validate_conditions |
|
<code/>and<pre/>for code samples.