Traverser
class Traverser
Traverser for walking a DOM tree.
This is a concrete traverser designed to convert a DOM tree into an HTML5 document. It is not intended to be a generic DOMTreeWalker implementation.
Methods
resource
walk()
Tell the traverser to walk the DOM.
node(
mixed $node)
Process a node in the DOM.
bool
isLocalElement(
mixed $ele)
Is an element local?
Details
at line line 49
__construct($dom, $out,
RulesInterface $rules, $options = array())
Create a traverser.
at line line 65
resource
walk()
Tell the traverser to walk the DOM.
at line line 93
node(
mixed $node)
Process a node in the DOM.
at line line 125
children(
DOMNodeList $nl)
Walk through all the nodes on a node list.
at line line 140
bool
isLocalElement(
mixed $ele)
Is an element local?