RemexHtml
Fast HTML 5 parser
|
The stack of template insertion modes. More...
Public Member Functions | |
push ( $mode) | |
Push a mode on to the stack. | |
pop () | |
Pop a mode from the stack. | |
bool | isEmpty () |
Return true if the stack is empty, false otherwise. | |
Public Attributes | |
int null | $current |
The insertion mode at the top of the stack. | |
The stack of template insertion modes.
We use a storage model optimised for access to the element at the top of the stack, which is stored separately from the rest of the stack.
bool Wikimedia\RemexHtml\TreeBuilder\TemplateModeStack::isEmpty | ( | ) |
Return true if the stack is empty, false otherwise.
Wikimedia\RemexHtml\TreeBuilder\TemplateModeStack::push | ( | $mode | ) |
Push a mode on to the stack.
int | $mode |
int null Wikimedia\RemexHtml\TreeBuilder\TemplateModeStack::$current |
The insertion mode at the top of the stack.
This is public for performance reasons but should be treated as read-only.