RemexHtml
Fast HTML 5 parser
|
The list of active formatting elements. More...
Public Member Functions | |
__destruct () | |
Manually unlink the doubly-linked list, since otherwise, it is not freed due to reference cycles. | |
insertMarker () | |
Insert a marker. | |
push (Element $elt) | |
Follow the steps required when the spec requires us to "push onto the
list of active formatting elements". | |
clearToMarker () | |
Follow the steps required when the spec asks us to "clear the list of
active formatting elements up to the last marker". | |
Element null | findElementByName ( $name) |
Find and return the last element with the specified name between the end of the list and the last marker on the list. | |
bool | isInList (Element $elt) |
Determine whether an element is in the list of formatting elements. | |
Element null | getTail () |
Get the most recently inserted element in the list. | |
The list of active formatting elements.
Element null Wikimedia\RemexHtml\TreeBuilder\ActiveFormattingElements::findElementByName | ( | $name | ) |
Find and return the last element with the specified name between the end of the list and the last marker on the list.
Used when parsing "in body mode".
string | $name |
Element null Wikimedia\RemexHtml\TreeBuilder\ActiveFormattingElements::getTail | ( | ) |
Get the most recently inserted element in the list.
bool Wikimedia\RemexHtml\TreeBuilder\ActiveFormattingElements::isInList | ( | Element | $elt | ) |
Determine whether an element is in the list of formatting elements.
Element | $elt |
Wikimedia\RemexHtml\TreeBuilder\ActiveFormattingElements::push | ( | Element | $elt | ) |
Follow the steps required when the spec requires us to "push onto the list of active formatting elements".
Element | $elt |