MediaWiki REL1_39
|
Public Member Functions | |
__construct (Serializer $serializer, $trace=false) | |
characters ( $preposition, $refElement, $text, $start, $length, $sourceStart, $sourceLength) | |
comment ( $preposition, $refElement, $text, $sourceStart, $sourceLength) | |
doctype ( $name, $public, $system, $quirks, $sourceStart, $sourceLength) | |
endDocument ( $pos) | |
endTag (Element $element, $sourceStart, $sourceLength) | |
error ( $text, $pos) | |
insertElement ( $preposition, $refElement, Element $element, $void, $sourceStart, $sourceLength) | |
Insert or reparent an element. | |
mergeAttributes (Element $element, Attributes $attrs, $sourceStart) | |
removeNode (Element $element, $sourceStart) | |
reparentChildren (Element $element, Element $newParent, $sourceStart) | |
startDocument ( $fragmentNamespace, $fragmentName) | |
Definition at line 17 of file RemexCompatMunger.php.
MediaWiki\Tidy\RemexCompatMunger::__construct | ( | Serializer | $serializer, |
$trace = false ) |
Serializer | $serializer | |
bool | $trace |
Definition at line 117 of file RemexCompatMunger.php.
MediaWiki\Tidy\RemexCompatMunger::characters | ( | $preposition, | |
$refElement, | |||
$text, | |||
$start, | |||
$length, | |||
$sourceStart, | |||
$sourceLength ) |
Definition at line 179 of file RemexCompatMunger.php.
MediaWiki\Tidy\RemexCompatMunger::comment | ( | $preposition, | |
$refElement, | |||
$text, | |||
$sourceStart, | |||
$sourceLength ) |
Definition at line 486 of file RemexCompatMunger.php.
MediaWiki\Tidy\RemexCompatMunger::doctype | ( | $name, | |
$public, | |||
$system, | |||
$quirks, | |||
$sourceStart, | |||
$sourceLength ) |
Definition at line 481 of file RemexCompatMunger.php.
MediaWiki\Tidy\RemexCompatMunger::endDocument | ( | $pos | ) |
Definition at line 129 of file RemexCompatMunger.php.
MediaWiki\Tidy\RemexCompatMunger::endTag | ( | Element | $element, |
$sourceStart, | |||
$sourceLength ) |
Definition at line 471 of file RemexCompatMunger.php.
References MediaWiki\Tidy\RemexCompatMunger\endTag().
Referenced by MediaWiki\Tidy\RemexCompatMunger\endTag().
MediaWiki\Tidy\RemexCompatMunger::error | ( | $text, | |
$pos ) |
Definition at line 491 of file RemexCompatMunger.php.
MediaWiki\Tidy\RemexCompatMunger::insertElement | ( | $preposition, | |
$refElement, | |||
Element | $element, | ||
$void, | |||
$sourceStart, | |||
$sourceLength ) |
Insert or reparent an element.
Create p-wrappers or split the tag stack as necessary.
Consider the following insertion locations. The parent may be:
And consider that we may insert two types of element:
We handle the insertion as follows:
FIXME: fostering ($preposition == BEFORE) is mostly done by inserting as normal, the full algorithm is not followed.
int | $preposition | |
Element | SerializerNode | null | $refElement | |
Element | $element | |
bool | $void | |
int | $sourceStart | |
int | $sourceLength |
Definition at line 268 of file RemexCompatMunger.php.
Referenced by MediaWiki\Tidy\RemexCompatMunger\reparentChildren().
MediaWiki\Tidy\RemexCompatMunger::mergeAttributes | ( | Element | $element, |
Attributes | $attrs, | ||
$sourceStart ) |
Definition at line 495 of file RemexCompatMunger.php.
MediaWiki\Tidy\RemexCompatMunger::removeNode | ( | Element | $element, |
$sourceStart ) |
Definition at line 499 of file RemexCompatMunger.php.
MediaWiki\Tidy\RemexCompatMunger::reparentChildren | ( | Element | $element, |
Element | $newParent, | ||
$sourceStart ) |
Definition at line 503 of file RemexCompatMunger.php.
References $self, MediaWiki\Tidy\RemexCompatMunger\insertElement(), and MediaWiki\Tidy\RemexCompatMunger\reparentChildren().
Referenced by MediaWiki\Tidy\RemexCompatMunger\reparentChildren().
MediaWiki\Tidy\RemexCompatMunger::startDocument | ( | $fragmentNamespace, | |
$fragmentName ) |
Definition at line 122 of file RemexCompatMunger.php.