Parsoid
A bidirectional parser between wikitext and HTML5
|
Public Member Functions | |
run (Env $env, Node $root, array $options=[], bool $atTopLevel=false) | |
Computes DSR ranges for every node of a DOM tree. | |
Wikimedia\Parsoid\Wt2Html\DOM\Processors\ComputeDSR::run | ( | Env | $env, |
Node | $root, | ||
array | $options = [], | ||
bool | $atTopLevel = false ) |
Computes DSR ranges for every node of a DOM tree.
This pass is only invoked on the top-level page.
Env | $env | The environment/context for the parse pipeline |
Node | $root | The root of the tree for which DSR has to be computed |
array | $options | Options governing DSR computation
|
bool | $atTopLevel | Are we running this on the top level? |
Implements Wikimedia\Parsoid\Wt2Html\Wt2HtmlDOMProcessor.