Clears the list of active formatting elements up to the last marker.
Description
When the steps below require the UA to clear the list of active formatting elements up to the last marker, the UA must perform the following steps:
- Let entry be the last (most recently added) entry in the list of active formatting elements.
- Remove entry from the list of active formatting elements.
- If entry was a marker, then stop the algorithm at this point.
The list has been cleared up to the last marker.- Go to step 1.
See also
Source
public function clear_up_to_last_marker(): void {
foreach ( $this->walk_up() as $item ) {
array_pop( $this->stack );
if ( 'marker' === $item->node_name ) {
break;
}
}
}
Changelog
Version | Description |
---|---|
6.7.0 | Introduced. |
User Contributed Notes
You must log in before being able to contribute a note or feedback.