Title: wp-includes/html-api/class-wp-html-active-formatting-elements.php | Developer.WordPress.org

---

# File: wp-includes/html-api/class-wp-html-active-formatting-elements.php

 * method[WP_HTML_Active_Formatting_Elements::clear_up_to_last_marker()](https://developer.wordpress.org/reference/classes/wp_html_active_formatting_elements/clear_up_to_last_marker/)
 * Clears the list of active formatting elements up to the last marker.
 * Used by [0 functions](https://developer.wordpress.org/reference/classes/wp_html_active_formatting_elements/clear_up_to_last_marker/#used-by)
   | Uses [0 functions](https://developer.wordpress.org/reference/classes/wp_html_active_formatting_elements/clear_up_to_last_marker/#uses)
   | Source: [wp-includes/html-api/class-wp-html-active-formatting-elements.php:221](https://github.com/WordPress/wordpress-develop/blob/7.1/src/wp-includes/html-api/class-wp-html-active-formatting-elements.php#L221-L228)
 * method[WP_HTML_Active_Formatting_Elements::insert_marker()](https://developer.wordpress.org/reference/classes/wp_html_active_formatting_elements/insert_marker/)
 * Inserts a “marker” at the end of the list of active formatting elements.
 * Used by [0 functions](https://developer.wordpress.org/reference/classes/wp_html_active_formatting_elements/insert_marker/#used-by)
   | Uses [0 functions](https://developer.wordpress.org/reference/classes/wp_html_active_formatting_elements/insert_marker/#uses)
   | Source: [wp-includes/html-api/class-wp-html-active-formatting-elements.php:101](https://github.com/WordPress/wordpress-develop/blob/7.1/src/wp-includes/html-api/class-wp-html-active-formatting-elements.php#L101-L103)
 * method[WP_HTML_Active_Formatting_Elements::walk_up()](https://developer.wordpress.org/reference/classes/wp_html_active_formatting_elements/walk_up/)
 * Steps through the stack of active formatting elements, starting with the bottom
   element (added last) and walking upwards to the one added first.
 * Used by [0 functions](https://developer.wordpress.org/reference/classes/wp_html_active_formatting_elements/walk_up/#used-by)
   | Uses [0 functions](https://developer.wordpress.org/reference/classes/wp_html_active_formatting_elements/walk_up/#uses)
   | Source: [wp-includes/html-api/class-wp-html-active-formatting-elements.php:198](https://github.com/WordPress/wordpress-develop/blob/7.1/src/wp-includes/html-api/class-wp-html-active-formatting-elements.php#L198-L202)
 * method[WP_HTML_Active_Formatting_Elements::push()](https://developer.wordpress.org/reference/classes/wp_html_active_formatting_elements/push/)
 * Pushes a node onto the stack of active formatting elements.
 * Used by [0 functions](https://developer.wordpress.org/reference/classes/wp_html_active_formatting_elements/push/#used-by)
   | Uses [0 functions](https://developer.wordpress.org/reference/classes/wp_html_active_formatting_elements/push/#uses)
   | Source: [wp-includes/html-api/class-wp-html-active-formatting-elements.php:114](https://github.com/WordPress/wordpress-develop/blob/7.1/src/wp-includes/html-api/class-wp-html-active-formatting-elements.php#L114-L128)
 * method[WP_HTML_Active_Formatting_Elements::remove_node()](https://developer.wordpress.org/reference/classes/wp_html_active_formatting_elements/remove_node/)
 * Removes a node from the stack of active formatting elements.
 * Used by [0 functions](https://developer.wordpress.org/reference/classes/wp_html_active_formatting_elements/remove_node/#used-by)
   | Uses [0 functions](https://developer.wordpress.org/reference/classes/wp_html_active_formatting_elements/remove_node/#uses)
   | Source: [wp-includes/html-api/class-wp-html-active-formatting-elements.php:138](https://github.com/WordPress/wordpress-develop/blob/7.1/src/wp-includes/html-api/class-wp-html-active-formatting-elements.php#L138-L150)
 * method[WP_HTML_Active_Formatting_Elements::walk_down()](https://developer.wordpress.org/reference/classes/wp_html_active_formatting_elements/walk_down/)
 * Steps through the stack of active formatting elements, starting with the top 
   element (added first) and walking downwards to the one added last.
 * Used by [0 functions](https://developer.wordpress.org/reference/classes/wp_html_active_formatting_elements/walk_down/#used-by)
   | Uses [0 functions](https://developer.wordpress.org/reference/classes/wp_html_active_formatting_elements/walk_down/#uses)
   | Source: [wp-includes/html-api/class-wp-html-active-formatting-elements.php:171](https://github.com/WordPress/wordpress-develop/blob/7.1/src/wp-includes/html-api/class-wp-html-active-formatting-elements.php#L171-L177)
 * class[WP_HTML_Active_Formatting_Elements](https://developer.wordpress.org/reference/classes/wp_html_active_formatting_elements/)
 * Core class used by the HTML processor during HTML parsing for managing the stack
   of active formatting elements.
 * Used by [0 functions](https://developer.wordpress.org/reference/classes/wp_html_active_formatting_elements/#used-by)
   | Uses [0 functions](https://developer.wordpress.org/reference/classes/wp_html_active_formatting_elements/#uses)
   | Source: [wp-includes/html-api/class-wp-html-active-formatting-elements.php:36](https://github.com/WordPress/wordpress-develop/blob/7.1/src/wp-includes/html-api/class-wp-html-active-formatting-elements.php#L36-L229)
 * method[WP_HTML_Active_Formatting_Elements::contains_node()](https://developer.wordpress.org/reference/classes/wp_html_active_formatting_elements/contains_node/)
 * Reports if a specific node is in the stack of active formatting elements.
 * Used by [0 functions](https://developer.wordpress.org/reference/classes/wp_html_active_formatting_elements/contains_node/#used-by)
   | Uses [0 functions](https://developer.wordpress.org/reference/classes/wp_html_active_formatting_elements/contains_node/#uses)
   | Source: [wp-includes/html-api/class-wp-html-active-formatting-elements.php:54](https://github.com/WordPress/wordpress-develop/blob/7.1/src/wp-includes/html-api/class-wp-html-active-formatting-elements.php#L54-L62)
 * method[WP_HTML_Active_Formatting_Elements::count()](https://developer.wordpress.org/reference/classes/wp_html_active_formatting_elements/count/)
 * Returns how many nodes are currently in the stack of active formatting elements.
 * Used by [0 functions](https://developer.wordpress.org/reference/classes/wp_html_active_formatting_elements/count/#used-by)
   | Uses [0 functions](https://developer.wordpress.org/reference/classes/wp_html_active_formatting_elements/count/#uses)
   | Source: [wp-includes/html-api/class-wp-html-active-formatting-elements.php:71](https://github.com/WordPress/wordpress-develop/blob/7.1/src/wp-includes/html-api/class-wp-html-active-formatting-elements.php#L71-L73)
 * method[WP_HTML_Active_Formatting_Elements::current_node()](https://developer.wordpress.org/reference/classes/wp_html_active_formatting_elements/current_node/)
 * Returns the node at the end of the stack of active formatting elements, if one
   exists. If the stack is empty, returns null.
 * Used by [0 functions](https://developer.wordpress.org/reference/classes/wp_html_active_formatting_elements/current_node/#used-by)
   | Uses [0 functions](https://developer.wordpress.org/reference/classes/wp_html_active_formatting_elements/current_node/#uses)
   | Source: [wp-includes/html-api/class-wp-html-active-formatting-elements.php:83](https://github.com/WordPress/wordpress-develop/blob/7.1/src/wp-includes/html-api/class-wp-html-active-formatting-elements.php#L83-L87)