Parsoid
A bidirectional parser between wikitext and HTML5
Loading...
Searching...
No Matches
Wikimedia\Parsoid\Wt2Html\DOM\Processors\WrapAnnotations Class Reference
+ Inheritance diagram for Wikimedia\Parsoid\Wt2Html\DOM\Processors\WrapAnnotations:
+ Collaboration diagram for Wikimedia\Parsoid\Wt2Html\DOM\Processors\WrapAnnotations:

Public Member Functions

 run (Env $env, Node $root, array $options=[], bool $atTopLevel=false)
 Encapsulate template-affected DOM structures by wrapping text nodes into spans and adding RDFa attributes to all subtree roots according to http://www.mediawiki.org/wiki/Parsoid/RDFa_vocabulary#Template_content
Parameters
Env$env
Element | DocumentFragment$rootThe root of the tree to process
array$options
bool$atTopLevelIs this processor invoked on the top level page? If false, this is being invoked in a sub-pipeline (ex: extensions)
.
 

Member Function Documentation

◆ run()

Wikimedia\Parsoid\Wt2Html\DOM\Processors\WrapAnnotations::run ( Env $env,
Node $root,
array $options = [],
bool $atTopLevel = false )

Encapsulate template-affected DOM structures by wrapping text nodes into spans and adding RDFa attributes to all subtree roots according to http://www.mediawiki.org/wiki/Parsoid/RDFa_vocabulary#Template_content

Parameters
Env$env
Element | DocumentFragment$rootThe root of the tree to process
array$options
bool$atTopLevelIs this processor invoked on the top level page? If false, this is being invoked in a sub-pipeline (ex: extensions)
.

Implements Wikimedia\Parsoid\Wt2Html\Wt2HtmlDOMProcessor.


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