Parsoid
A bidirectional parser between wikitext and HTML5
|
Public Member Functions | |
__construct (Document $document, Frame $frame) | |
AnnotationDOMRangeBuilder constructor. | |
execute (Node $root) | |
Public Member Functions inherited from Wikimedia\Parsoid\Wt2Html\PP\Processors\DOMRangeBuilder | |
findTopLevelNonOverlappingRanges (Node $docRoot, array $tplRanges) | |
Identify the elements of $tplRanges that are non-overlapping. | |
Protected Member Functions | |||||||
matchMetaType (Element $elem) | |||||||
Returns the meta type of the element if it exists and matches the type expected by the current class, null otherwise. | |||||||
verifyTplInfoExpectation (?TemplateInfo $templateInfo, TempData $tmp) | |||||||
| |||||||
getRangeId (Element $node) | |||||||
Returns the range ID of a node - in the case of annotations, the "rangeId" property of its "data-mw" attribute. | |||||||
updateDSRForFirstRangeNode (Element $target, Element $source) | |||||||
| |||||||
Protected Member Functions inherited from Wikimedia\Parsoid\Wt2Html\PP\Processors\DOMRangeBuilder | |||||||
getStartConsideringFosteredContent (Node $node) | |||||||
Returns the current node if it's not just after fostered content, the first node of fostered content otherwise. | |||||||
findWrappableMetaRanges (Node $rootNode) | |||||||
Recursively walk the DOM tree. | |||||||
Additional Inherited Members | |
Protected Attributes inherited from Wikimedia\Parsoid\Wt2Html\PP\Processors\DOMRangeBuilder | |
$env | |
$nodeRanges | |
$traceType | |
Wikimedia\Parsoid\Wt2Html\PP\Processors\AnnotationDOMRangeBuilder::__construct | ( | Document | $document, |
Frame | $frame ) |
AnnotationDOMRangeBuilder constructor.
Document | $document | |
Frame | $frame |
Reimplemented from Wikimedia\Parsoid\Wt2Html\PP\Processors\DOMRangeBuilder.
Wikimedia\Parsoid\Wt2Html\PP\Processors\AnnotationDOMRangeBuilder::execute | ( | Node | $root | ) |
Node | $root |
Reimplemented from Wikimedia\Parsoid\Wt2Html\PP\Processors\DOMRangeBuilder.
|
protected |
Returns the range ID of a node - in the case of annotations, the "rangeId" property of its "data-mw" attribute.
Element | $node |
Reimplemented from Wikimedia\Parsoid\Wt2Html\PP\Processors\DOMRangeBuilder.
|
protected |
Returns the meta type of the element if it exists and matches the type expected by the current class, null otherwise.
Element | $elem | the element to check |
Reimplemented from Wikimedia\Parsoid\Wt2Html\PP\Processors\DOMRangeBuilder.
|
protected |
Element | $target | |
Element | $source |
Reimplemented from Wikimedia\Parsoid\Wt2Html\PP\Processors\DOMRangeBuilder.
|
protected |
?TemplateInfo | $templateInfo | |
TempData | $tmp |
Reimplemented from Wikimedia\Parsoid\Wt2Html\PP\Processors\DOMRangeBuilder.