Parsoid
A bidirectional parser between wikitext and HTML5
Parsoid\Utils\DOMPostOrder Class Reference

Non-recursive post-order traversal of a DOM tree. More...

Static Public Member Functions

static traverse (DOMNode $root, callable $visitFunc)
 Non-recursive post-order traversal of a DOM tree. More...
 

Detailed Description

Non-recursive post-order traversal of a DOM tree.

Member Function Documentation

◆ traverse()

static Parsoid\Utils\DOMPostOrder::traverse ( DOMNode  $root,
callable  $visitFunc 
)
static

Non-recursive post-order traversal of a DOM tree.

Parameters
DOMNode$root
callable$visitFuncCalled in post-order on each node.

The documentation for this class was generated from the following file: