Parsoid
A bidirectional parser between wikitext and HTML5
Loading...
Searching...
No Matches
Wikimedia\Parsoid\Utils\DOMPostOrder Class Reference

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

Static Public Member Functions

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

Detailed Description

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

Member Function Documentation

◆ traverse()

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

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

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

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