◆ finalCleanup()
static Wikimedia\Parsoid\Wt2Html\DOM\Handlers\CleanUp::finalCleanup |
( |
Node | $node, |
|
|
DTState | $state ) |
|
static |
Perform some final cleanup.
- Parameters
-
- Returns
- bool|Node The next node or true to continue with $node->nextSibling
◆ handleEmptyElements()
static Wikimedia\Parsoid\Wt2Html\DOM\Handlers\CleanUp::handleEmptyElements |
( |
Node | $node, |
|
|
DTState | $state ) |
|
static |
- Parameters
-
- Returns
- bool|Node
The node is known to be empty and a deletion candidate
- If node is part of template content and is not the first encapsulation wrapper node, and doesn't contain any rendering transparent nodes, it can be deleted.
- If not, we add the mw-empty-elt class so that wikis can decide what to do with them.
◆ saveDataParsoid()
static Wikimedia\Parsoid\Wt2Html\DOM\Handlers\CleanUp::saveDataParsoid |
( |
Node | $node, |
|
|
DTState | $state ) |
|
static |
Perform some final cleanup.
- Parameters
-
- Returns
- bool|Node The next node or true to continue with $node->nextSibling
◆ stripMarkerMetas()
static Wikimedia\Parsoid\Wt2Html\DOM\Handlers\CleanUp::stripMarkerMetas |
( |
Element | $node | ) |
|
|
static |
- Parameters
-
- Returns
- bool|Element
◆ ALLOWED_TPL_WRAPPER_ATTRS
const Wikimedia\Parsoid\Wt2Html\DOM\Handlers\CleanUp::ALLOWED_TPL_WRAPPER_ATTRS |
Initial value:= [
'about' => 1,
'typeof' => 1,
]
The documentation for this class was generated from the following file:
- src/Wt2Html/DOM/Handlers/CleanUp.php