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

State carried while DOM Traversing. More...

+ Collaboration diagram for Wikimedia\Parsoid\Utils\DTState:

Public Member Functions

 __construct (Env $env, array $options=[], bool $atTopLevel=false)
 

Public Attributes

Env $env
 
array $options
 
bool $atTopLevel
 
stdClass $tplInfo = null
 
array $abouts = []
 
array $seenIds = []
 
PegTokenizer $tokenizer = null
 

Detailed Description

State carried while DOM Traversing.

FIXME: As it stands, DTState cannot be constructed outside of Parsoid. However, extensions and core code might benefit from a non-Parsoid-specific state object that DOMTraverser users outside of Parsoid could use.


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