Traverser
class Traverser (View source)
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.
Properties
static | $local_ns | Namespaces that should be treated as "local" to HTML5. |
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 126
children(
DOMNodeList $nl)
Walk through all the nodes on a node list.
at line line 141
bool
isLocalElement(
mixed $ele)
Is an element local?