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

---

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

 * method[WP_HTML_Open_Elements::clear_to_table_context()](https://developer.wordpress.org/reference/classes/wp_html_open_elements/clear_to_table_context/)
 * Clear the stack back to a table context.
 * Used by [0 functions](https://developer.wordpress.org/reference/classes/wp_html_open_elements/clear_to_table_context/#used-by)
   | Uses [0 functions](https://developer.wordpress.org/reference/classes/wp_html_open_elements/clear_to_table_context/#uses)
   | Source: [wp-includes/html-api/class-wp-html-open-elements.php:781](https://github.com/WordPress/wordpress-develop/blob/7.0/src/wp-includes/html-api/class-wp-html-open-elements.php#L781-L792)
 * method[WP_HTML_Open_Elements::clear_to_table_body_context()](https://developer.wordpress.org/reference/classes/wp_html_open_elements/clear_to_table_body_context/)
 * Clear the stack back to a table body context.
 * Used by [0 functions](https://developer.wordpress.org/reference/classes/wp_html_open_elements/clear_to_table_body_context/#used-by)
   | Uses [0 functions](https://developer.wordpress.org/reference/classes/wp_html_open_elements/clear_to_table_body_context/#uses)
   | Source: [wp-includes/html-api/class-wp-html-open-elements.php:805](https://github.com/WordPress/wordpress-develop/blob/7.0/src/wp-includes/html-api/class-wp-html-open-elements.php#L805-L818)
 * method[WP_HTML_Open_Elements::clear_to_table_row_context()](https://developer.wordpress.org/reference/classes/wp_html_open_elements/clear_to_table_row_context/)
 * Clear the stack back to a table row context.
 * Used by [0 functions](https://developer.wordpress.org/reference/classes/wp_html_open_elements/clear_to_table_row_context/#used-by)
   | Uses [0 functions](https://developer.wordpress.org/reference/classes/wp_html_open_elements/clear_to_table_row_context/#uses)
   | Source: [wp-includes/html-api/class-wp-html-open-elements.php:831](https://github.com/WordPress/wordpress-develop/blob/7.0/src/wp-includes/html-api/class-wp-html-open-elements.php#L831-L842)
 * method[WP_HTML_Open_Elements::__wakeup()](https://developer.wordpress.org/reference/classes/wp_html_open_elements/__wakeup/)
 * Wakeup magic method.
 * Used by [0 functions](https://developer.wordpress.org/reference/classes/wp_html_open_elements/__wakeup/#used-by)
   | Uses [0 functions](https://developer.wordpress.org/reference/classes/wp_html_open_elements/__wakeup/#uses)
   | Source: [wp-includes/html-api/class-wp-html-open-elements.php:849](https://github.com/WordPress/wordpress-develop/blob/7.0/src/wp-includes/html-api/class-wp-html-open-elements.php#L849-L851)
 * method[WP_HTML_Open_Elements::contains()](https://developer.wordpress.org/reference/classes/wp_html_open_elements/contains/)
 * Reports if a node of a given name is in the stack of open elements.
 * Used by [0 functions](https://developer.wordpress.org/reference/classes/wp_html_open_elements/contains/#used-by)
   | Uses [0 functions](https://developer.wordpress.org/reference/classes/wp_html_open_elements/contains/#uses)
   | Source: [wp-includes/html-api/class-wp-html-open-elements.php:137](https://github.com/WordPress/wordpress-develop/blob/7.0/src/wp-includes/html-api/class-wp-html-open-elements.php#L137-L145)
 * method[WP_HTML_Open_Elements::current_node_is()](https://developer.wordpress.org/reference/classes/wp_html_open_elements/current_node_is/)
 * Indicates if the current node is of a given type or name.
 * Used by [0 functions](https://developer.wordpress.org/reference/classes/wp_html_open_elements/current_node_is/#used-by)
   | Uses [0 functions](https://developer.wordpress.org/reference/classes/wp_html_open_elements/current_node_is/#uses)
   | Source: [wp-includes/html-api/class-wp-html-open-elements.php:217](https://github.com/WordPress/wordpress-develop/blob/7.0/src/wp-includes/html-api/class-wp-html-open-elements.php#L217-L230)
 * method[WP_HTML_Open_Elements::set_pop_handler()](https://developer.wordpress.org/reference/classes/wp_html_open_elements/set_pop_handler/)
 * Sets a pop handler that will be called when an item is popped off the stack of
   open elements.
 * Used by [0 functions](https://developer.wordpress.org/reference/classes/wp_html_open_elements/set_pop_handler/#used-by)
   | Uses [0 functions](https://developer.wordpress.org/reference/classes/wp_html_open_elements/set_pop_handler/#uses)
   | Source: [wp-includes/html-api/class-wp-html-open-elements.php:86](https://github.com/WordPress/wordpress-develop/blob/7.0/src/wp-includes/html-api/class-wp-html-open-elements.php#L86-L88)
 * method[WP_HTML_Open_Elements::set_push_handler()](https://developer.wordpress.org/reference/classes/wp_html_open_elements/set_push_handler/)
 * Sets a push handler that will be called when an item is pushed onto the stack
   of open elements.
 * Used by [0 functions](https://developer.wordpress.org/reference/classes/wp_html_open_elements/set_push_handler/#used-by)
   | Uses [0 functions](https://developer.wordpress.org/reference/classes/wp_html_open_elements/set_push_handler/#uses)
   | Source: [wp-includes/html-api/class-wp-html-open-elements.php:100](https://github.com/WordPress/wordpress-develop/blob/7.0/src/wp-includes/html-api/class-wp-html-open-elements.php#L100-L102)
 * method[WP_HTML_Open_Elements::at()](https://developer.wordpress.org/reference/classes/wp_html_open_elements/at/)
 * Returns the name of the node at the nth position on the stack of open elements,
   or `null` if no such position exists.
 * Used by [0 functions](https://developer.wordpress.org/reference/classes/wp_html_open_elements/at/#used-by)
   | Uses [0 functions](https://developer.wordpress.org/reference/classes/wp_html_open_elements/at/#uses)
   | Source: [wp-includes/html-api/class-wp-html-open-elements.php:119](https://github.com/WordPress/wordpress-develop/blob/7.0/src/wp-includes/html-api/class-wp-html-open-elements.php#L119-L127)
 * method[WP_HTML_Open_Elements::after_element_pop()](https://developer.wordpress.org/reference/classes/wp_html_open_elements/after_element_pop/)
 * Updates internal flags after removing an element.
 * Used by [0 functions](https://developer.wordpress.org/reference/classes/wp_html_open_elements/after_element_pop/#used-by)
   | Uses [0 functions](https://developer.wordpress.org/reference/classes/wp_html_open_elements/after_element_pop/#uses)
   | Source: [wp-includes/html-api/class-wp-html-open-elements.php:735](https://github.com/WordPress/wordpress-develop/blob/7.0/src/wp-includes/html-api/class-wp-html-open-elements.php#L735-L768)
 * method[WP_HTML_Open_Elements::walk_up()](https://developer.wordpress.org/reference/classes/wp_html_open_elements/walk_up/)
 * Steps through the stack of open 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_open_elements/walk_up/#used-by)
   | Uses [0 functions](https://developer.wordpress.org/reference/classes/wp_html_open_elements/walk_up/#uses)
   | Source: [wp-includes/html-api/class-wp-html-open-elements.php:648](https://github.com/WordPress/wordpress-develop/blob/7.0/src/wp-includes/html-api/class-wp-html-open-elements.php#L648-L661)
 * method[WP_HTML_Open_Elements::after_element_push()](https://developer.wordpress.org/reference/classes/wp_html_open_elements/after_element_push/)
 * Updates internal flags after adding an element.
 * Used by [0 functions](https://developer.wordpress.org/reference/classes/wp_html_open_elements/after_element_push/#used-by)
   | Uses [0 functions](https://developer.wordpress.org/reference/classes/wp_html_open_elements/after_element_push/#uses)
   | Source: [wp-includes/html-api/class-wp-html-open-elements.php:680](https://github.com/WordPress/wordpress-develop/blob/7.0/src/wp-includes/html-api/class-wp-html-open-elements.php#L680-L720)
 * method[WP_HTML_Open_Elements::has_element_in_select_scope()](https://developer.wordpress.org/reference/classes/wp_html_open_elements/has_element_in_select_scope/)
 * Returns whether a particular element is in select scope.
 * Used by [0 functions](https://developer.wordpress.org/reference/classes/wp_html_open_elements/has_element_in_select_scope/#used-by)
   | Uses [0 functions](https://developer.wordpress.org/reference/classes/wp_html_open_elements/has_element_in_select_scope/#uses)
   | Source: [wp-includes/html-api/class-wp-html-open-elements.php:478](https://github.com/WordPress/wordpress-develop/blob/7.0/src/wp-includes/html-api/class-wp-html-open-elements.php#L478-L493)
 * method[WP_HTML_Open_Elements::has_p_in_button_scope()](https://developer.wordpress.org/reference/classes/wp_html_open_elements/has_p_in_button_scope/)
 * Returns whether a P is in BUTTON scope.
 * Used by [0 functions](https://developer.wordpress.org/reference/classes/wp_html_open_elements/has_p_in_button_scope/#used-by)
   | Uses [0 functions](https://developer.wordpress.org/reference/classes/wp_html_open_elements/has_p_in_button_scope/#uses)
   | Source: [wp-includes/html-api/class-wp-html-open-elements.php:504](https://github.com/WordPress/wordpress-develop/blob/7.0/src/wp-includes/html-api/class-wp-html-open-elements.php#L504-L506)
 * method[WP_HTML_Open_Elements::pop()](https://developer.wordpress.org/reference/classes/wp_html_open_elements/pop/)
 * Pops a node off of the stack of open elements.
 * Used by [0 functions](https://developer.wordpress.org/reference/classes/wp_html_open_elements/pop/#used-by)
   | Uses [0 functions](https://developer.wordpress.org/reference/classes/wp_html_open_elements/pop/#uses)
   | Source: [wp-includes/html-api/class-wp-html-open-elements.php:517](https://github.com/WordPress/wordpress-develop/blob/7.0/src/wp-includes/html-api/class-wp-html-open-elements.php#L517-L525)
 * method[WP_HTML_Open_Elements::pop_until()](https://developer.wordpress.org/reference/classes/wp_html_open_elements/pop_until/)
 * Pops nodes off of the stack of open elements until an HTML tag with the given
   name has been popped.
 * Used by [0 functions](https://developer.wordpress.org/reference/classes/wp_html_open_elements/pop_until/#used-by)
   | Uses [0 functions](https://developer.wordpress.org/reference/classes/wp_html_open_elements/pop_until/#uses)
   | Source: [wp-includes/html-api/class-wp-html-open-elements.php:537](https://github.com/WordPress/wordpress-develop/blob/7.0/src/wp-includes/html-api/class-wp-html-open-elements.php#L537-L558)
 * method[WP_HTML_Open_Elements::push()](https://developer.wordpress.org/reference/classes/wp_html_open_elements/push/)
 * Pushes a node onto the stack of open elements.
 * Used by [0 functions](https://developer.wordpress.org/reference/classes/wp_html_open_elements/push/#used-by)
   | Uses [0 functions](https://developer.wordpress.org/reference/classes/wp_html_open_elements/push/#uses)
   | Source: [wp-includes/html-api/class-wp-html-open-elements.php:569](https://github.com/WordPress/wordpress-develop/blob/7.0/src/wp-includes/html-api/class-wp-html-open-elements.php#L569-L572)
 * method[WP_HTML_Open_Elements::remove_node()](https://developer.wordpress.org/reference/classes/wp_html_open_elements/remove_node/)
 * Removes a specific node from the stack of open elements.
 * Used by [0 functions](https://developer.wordpress.org/reference/classes/wp_html_open_elements/remove_node/#used-by)
   | Uses [0 functions](https://developer.wordpress.org/reference/classes/wp_html_open_elements/remove_node/#uses)
   | Source: [wp-includes/html-api/class-wp-html-open-elements.php:582](https://github.com/WordPress/wordpress-develop/blob/7.0/src/wp-includes/html-api/class-wp-html-open-elements.php#L582-L595)
 * method[WP_HTML_Open_Elements::walk_down()](https://developer.wordpress.org/reference/classes/wp_html_open_elements/walk_down/)
 * Steps through the stack of open 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_open_elements/walk_down/#used-by)
   | Uses [0 functions](https://developer.wordpress.org/reference/classes/wp_html_open_elements/walk_down/#uses)
   | Source: [wp-includes/html-api/class-wp-html-open-elements.php:617](https://github.com/WordPress/wordpress-develop/blob/7.0/src/wp-includes/html-api/class-wp-html-open-elements.php#L617-L623)
 * method[WP_HTML_Open_Elements::has_element_in_button_scope()](https://developer.wordpress.org/reference/classes/wp_html_open_elements/has_element_in_button_scope/)
 * Returns whether a particular element is in button scope.
 * Used by [0 functions](https://developer.wordpress.org/reference/classes/wp_html_open_elements/has_element_in_button_scope/#used-by)
   | Uses [0 functions](https://developer.wordpress.org/reference/classes/wp_html_open_elements/has_element_in_button_scope/#uses)
   | Source: [wp-includes/html-api/class-wp-html-open-elements.php:399](https://github.com/WordPress/wordpress-develop/blob/7.0/src/wp-includes/html-api/class-wp-html-open-elements.php#L399-L426)
 * method[WP_HTML_Open_Elements::has_element_in_table_scope()](https://developer.wordpress.org/reference/classes/wp_html_open_elements/has_element_in_table_scope/)
 * Returns whether a particular element is in table scope.
 * Used by [0 functions](https://developer.wordpress.org/reference/classes/wp_html_open_elements/has_element_in_table_scope/#used-by)
   | Uses [0 functions](https://developer.wordpress.org/reference/classes/wp_html_open_elements/has_element_in_table_scope/#uses)
   | Source: [wp-includes/html-api/class-wp-html-open-elements.php:447](https://github.com/WordPress/wordpress-develop/blob/7.0/src/wp-includes/html-api/class-wp-html-open-elements.php#L447-L456)
 * method[WP_HTML_Open_Elements::current_node()](https://developer.wordpress.org/reference/classes/wp_html_open_elements/current_node/)
 * Returns the node at the end of the stack of open elements, if one exists. If 
   the stack is empty, returns null.
 * Used by [0 functions](https://developer.wordpress.org/reference/classes/wp_html_open_elements/current_node/#used-by)
   | Uses [0 functions](https://developer.wordpress.org/reference/classes/wp_html_open_elements/current_node/#uses)
   | Source: [wp-includes/html-api/class-wp-html-open-elements.php:184](https://github.com/WordPress/wordpress-develop/blob/7.0/src/wp-includes/html-api/class-wp-html-open-elements.php#L184-L188)
 * method[WP_HTML_Open_Elements::has_element_in_specific_scope()](https://developer.wordpress.org/reference/classes/wp_html_open_elements/has_element_in_specific_scope/)
 * Returns whether an element is in a specific scope.
 * Used by [0 functions](https://developer.wordpress.org/reference/classes/wp_html_open_elements/has_element_in_specific_scope/#used-by)
   | Uses [0 functions](https://developer.wordpress.org/reference/classes/wp_html_open_elements/has_element_in_specific_scope/#uses)
   | Source: [wp-includes/html-api/class-wp-html-open-elements.php:243](https://github.com/WordPress/wordpress-develop/blob/7.0/src/wp-includes/html-api/class-wp-html-open-elements.php#L243-L266)
 * method[WP_HTML_Open_Elements::has_element_in_scope()](https://developer.wordpress.org/reference/classes/wp_html_open_elements/has_element_in_scope/)
 * Returns whether a particular element is in scope.
 * Used by [0 functions](https://developer.wordpress.org/reference/classes/wp_html_open_elements/has_element_in_scope/#used-by)
   | Uses [0 functions](https://developer.wordpress.org/reference/classes/wp_html_open_elements/has_element_in_scope/#uses)
   | Source: [wp-includes/html-api/class-wp-html-open-elements.php:302](https://github.com/WordPress/wordpress-develop/blob/7.0/src/wp-includes/html-api/class-wp-html-open-elements.php#L302-L328)
 * method[WP_HTML_Open_Elements::has_element_in_list_item_scope()](https://developer.wordpress.org/reference/classes/wp_html_open_elements/has_element_in_list_item_scope/)
 * Returns whether a particular element is in list item scope.
 * Used by [0 functions](https://developer.wordpress.org/reference/classes/wp_html_open_elements/has_element_in_list_item_scope/#used-by)
   | Uses [0 functions](https://developer.wordpress.org/reference/classes/wp_html_open_elements/has_element_in_list_item_scope/#uses)
   | Source: [wp-includes/html-api/class-wp-html-open-elements.php:350](https://github.com/WordPress/wordpress-develop/blob/7.0/src/wp-includes/html-api/class-wp-html-open-elements.php#L350-L379)
 * class[WP_HTML_Open_Elements](https://developer.wordpress.org/reference/classes/wp_html_open_elements/)
 * Core class used by the HTML processor during HTML parsing for managing the stack
   of open elements.
 * Used by [0 functions](https://developer.wordpress.org/reference/classes/wp_html_open_elements/#used-by)
   | Uses [0 functions](https://developer.wordpress.org/reference/classes/wp_html_open_elements/#uses)
   | Source: [wp-includes/html-api/class-wp-html-open-elements.php:30](https://github.com/WordPress/wordpress-develop/blob/7.0/src/wp-includes/html-api/class-wp-html-open-elements.php#L30-L852)
 * method[WP_HTML_Open_Elements::contains_node()](https://developer.wordpress.org/reference/classes/wp_html_open_elements/contains_node/)
 * Reports if a specific node is in the stack of open elements.
 * Used by [0 functions](https://developer.wordpress.org/reference/classes/wp_html_open_elements/contains_node/#used-by)
   | Uses [0 functions](https://developer.wordpress.org/reference/classes/wp_html_open_elements/contains_node/#uses)
   | Source: [wp-includes/html-api/class-wp-html-open-elements.php:155](https://github.com/WordPress/wordpress-develop/blob/7.0/src/wp-includes/html-api/class-wp-html-open-elements.php#L155-L163)
 * method[WP_HTML_Open_Elements::count()](https://developer.wordpress.org/reference/classes/wp_html_open_elements/count/)
 * Returns how many nodes are currently in the stack of open elements.
 * Used by [0 functions](https://developer.wordpress.org/reference/classes/wp_html_open_elements/count/#used-by)
   | Uses [0 functions](https://developer.wordpress.org/reference/classes/wp_html_open_elements/count/#uses)
   | Source: [wp-includes/html-api/class-wp-html-open-elements.php:172](https://github.com/WordPress/wordpress-develop/blob/7.0/src/wp-includes/html-api/class-wp-html-open-elements.php#L172-L174)