RemexHtml
Fast HTML 5 parser
Loading...
Searching...
No Matches
Wikimedia\RemexHtml\TreeBuilder\ActiveFormattingElements Class Reference

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.
 

Detailed Description

The list of active formatting elements.

Member Function Documentation

◆ findElementByName()

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".

Parameters
string$name
Returns
Element|null

◆ getTail()

Element null Wikimedia\RemexHtml\TreeBuilder\ActiveFormattingElements::getTail ( )

Get the most recently inserted element in the list.

Returns
Element|null

◆ isInList()

bool Wikimedia\RemexHtml\TreeBuilder\ActiveFormattingElements::isInList ( Element $elt)

Determine whether an element is in the list of formatting elements.

Parameters
Element$elt
Returns
bool

◆ push()

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".

Parameters
Element$elt

The documentation for this class was generated from the following file: