Title: wp-includes/html-api/class-wp-html-processor.php | Page 3 of 3 | Developer.WordPress.org

---

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

 * method[WP_HTML_Processor::insert_html_element()](https://developer.wordpress.org/reference/classes/wp_html_processor/insert_html_element/)
 * Inserts an HTML element on the stack of open elements.
 * Used by [0 functions](https://developer.wordpress.org/reference/classes/wp_html_processor/insert_html_element/#used-by)
   | Uses [0 functions](https://developer.wordpress.org/reference/classes/wp_html_processor/insert_html_element/#uses)
   | Source: [wp-includes/html-api/class-wp-html-processor.php:6242](https://github.com/WordPress/wordpress-develop/blob/7.0/src/wp-includes/html-api/class-wp-html-processor.php#L6242-L6244)
 * method[WP_HTML_Processor::is_special()](https://developer.wordpress.org/reference/classes/wp_html_processor/is_special/)
 * Returns whether an element of a given name is in the HTML special category.
 * Used by [0 functions](https://developer.wordpress.org/reference/classes/wp_html_processor/is_special/#used-by)
   | Uses [0 functions](https://developer.wordpress.org/reference/classes/wp_html_processor/is_special/#uses)
   | Source: [wp-includes/html-api/class-wp-html-processor.php:6490](https://github.com/WordPress/wordpress-develop/blob/7.0/src/wp-includes/html-api/class-wp-html-processor.php#L6490-L6597)
 * method[WP_HTML_Processor::seek()](https://developer.wordpress.org/reference/classes/wp_html_processor/seek/)
 * Moves the internal cursor in the HTML Processor to a given bookmark’s location.
 * Used by [0 functions](https://developer.wordpress.org/reference/classes/wp_html_processor/seek/#used-by)
   | Uses [4 functions](https://developer.wordpress.org/reference/classes/wp_html_processor/seek/#uses)
   | Source: [wp-includes/html-api/class-wp-html-processor.php:5576](https://github.com/WordPress/wordpress-develop/blob/7.0/src/wp-includes/html-api/class-wp-html-processor.php#L5576-L5705)
 * method[WP_HTML_Processor::set_bookmark()](https://developer.wordpress.org/reference/classes/wp_html_processor/set_bookmark/)
 * Sets a bookmark in the HTML document.
 * Used by [0 functions](https://developer.wordpress.org/reference/classes/wp_html_processor/set_bookmark/#used-by)
   | Uses [3 functions](https://developer.wordpress.org/reference/classes/wp_html_processor/set_bookmark/#uses)
   | Source: [wp-includes/html-api/class-wp-html-processor.php:5792](https://github.com/WordPress/wordpress-develop/blob/7.0/src/wp-includes/html-api/class-wp-html-processor.php#L5792-L5802)
 * method[WP_HTML_Processor::close_a_p_element()](https://developer.wordpress.org/reference/classes/wp_html_processor/close_a_p_element/)
 * Closes a P element.
 * Used by [0 functions](https://developer.wordpress.org/reference/classes/wp_html_processor/close_a_p_element/#used-by)
   | Uses [0 functions](https://developer.wordpress.org/reference/classes/wp_html_processor/close_a_p_element/#uses)
   | Source: [wp-includes/html-api/class-wp-html-processor.php:5760](https://github.com/WordPress/wordpress-develop/blob/7.0/src/wp-includes/html-api/class-wp-html-processor.php#L5760-L5763)
 * method[WP_HTML_Processor::generate_implied_end_tags()](https://developer.wordpress.org/reference/classes/wp_html_processor/generate_implied_end_tags/)
 * Closes elements that have implied end tags.
 * Used by [0 functions](https://developer.wordpress.org/reference/classes/wp_html_processor/generate_implied_end_tags/#used-by)
   | Uses [0 functions](https://developer.wordpress.org/reference/classes/wp_html_processor/generate_implied_end_tags/#uses)
   | Source: [wp-includes/html-api/class-wp-html-processor.php:5775](https://github.com/WordPress/wordpress-develop/blob/7.0/src/wp-includes/html-api/class-wp-html-processor.php#L5775-L5797)
 * method[WP_HTML_Processor::generate_implied_end_tags_thoroughly()](https://developer.wordpress.org/reference/classes/wp_html_processor/generate_implied_end_tags_thoroughly/)
 * Closes elements that have implied end tags, thoroughly.
 * Used by [0 functions](https://developer.wordpress.org/reference/classes/wp_html_processor/generate_implied_end_tags_thoroughly/#used-by)
   | Uses [0 functions](https://developer.wordpress.org/reference/classes/wp_html_processor/generate_implied_end_tags_thoroughly/#uses)
   | Source: [wp-includes/html-api/class-wp-html-processor.php:5811](https://github.com/WordPress/wordpress-develop/blob/7.0/src/wp-includes/html-api/class-wp-html-processor.php#L5811-L5836)
 * method[WP_HTML_Processor::reconstruct_active_formatting_elements()](https://developer.wordpress.org/reference/classes/wp_html_processor/reconstruct_active_formatting_elements/)
 * Reconstructs the active formatting elements.
 * Used by [0 functions](https://developer.wordpress.org/reference/classes/wp_html_processor/reconstruct_active_formatting_elements/#used-by)
   | Uses [0 functions](https://developer.wordpress.org/reference/classes/wp_html_processor/reconstruct_active_formatting_elements/#uses)
   | Source: [wp-includes/html-api/class-wp-html-processor.php:5875](https://github.com/WordPress/wordpress-develop/blob/7.0/src/wp-includes/html-api/class-wp-html-processor.php#L5875-L5904)
 * method[WP_HTML_Processor::run_adoption_agency_algorithm()](https://developer.wordpress.org/reference/classes/wp_html_processor/run_adoption_agency_algorithm/)
 * Runs the adoption agency algorithm.
 * Used by [0 functions](https://developer.wordpress.org/reference/classes/wp_html_processor/run_adoption_agency_algorithm/#used-by)
   | Uses [0 functions](https://developer.wordpress.org/reference/classes/wp_html_processor/run_adoption_agency_algorithm/#uses)
   | Source: [wp-includes/html-api/class-wp-html-processor.php:6107](https://github.com/WordPress/wordpress-develop/blob/7.0/src/wp-includes/html-api/class-wp-html-processor.php#L6107-L6204)
 * method[WP_HTML_Processor::get_tag()](https://developer.wordpress.org/reference/classes/wp_html_processor/get_tag/)
 * Returns the uppercase name of the matched tag.
 * Used by [2 functions](https://developer.wordpress.org/reference/classes/wp_html_processor/get_tag/#used-by)
   | Uses [2 functions](https://developer.wordpress.org/reference/classes/wp_html_processor/get_tag/#uses)
   | Source: [wp-includes/html-api/class-wp-html-processor.php:5223](https://github.com/WordPress/wordpress-develop/blob/7.0/src/wp-includes/html-api/class-wp-html-processor.php#L5223-L5241)
 * method[WP_HTML_Processor::release_bookmark()](https://developer.wordpress.org/reference/classes/wp_html_processor/release_bookmark/)
 * Removes a bookmark that is no longer needed.
 * Used by [0 functions](https://developer.wordpress.org/reference/classes/wp_html_processor/release_bookmark/#used-by)
   | Uses [1 function](https://developer.wordpress.org/reference/classes/wp_html_processor/release_bookmark/#uses)
   | Source: [wp-includes/html-api/class-wp-html-processor.php:5555](https://github.com/WordPress/wordpress-develop/blob/7.0/src/wp-includes/html-api/class-wp-html-processor.php#L5555-L5557)
 * method[WP_HTML_Processor::next_tag()](https://developer.wordpress.org/reference/classes/wp_html_processor/next_tag/)
 * Finds the next tag matching the $query.
 * Used by [0 functions](https://developer.wordpress.org/reference/classes/wp_html_processor/next_tag/#used-by)
   | Uses [8 functions](https://developer.wordpress.org/reference/classes/wp_html_processor/next_tag/#uses)
   | Source: [wp-includes/html-api/class-wp-html-processor.php:685](https://github.com/WordPress/wordpress-develop/blob/7.0/src/wp-includes/html-api/class-wp-html-processor.php#L685-L763)
 * method[WP_HTML_Processor::matches_breadcrumbs()](https://developer.wordpress.org/reference/classes/wp_html_processor/matches_breadcrumbs/)
 * Indicates if the currently-matched tag matches the given breadcrumbs.
 * Used by [1 function](https://developer.wordpress.org/reference/classes/wp_html_processor/matches_breadcrumbs/#used-by)
   | Uses [1 function](https://developer.wordpress.org/reference/classes/wp_html_processor/matches_breadcrumbs/#uses)
   | Source: [wp-includes/html-api/class-wp-html-processor.php:920](https://github.com/WordPress/wordpress-develop/blob/7.0/src/wp-includes/html-api/class-wp-html-processor.php#L920-L947)
 * method[WP_HTML_Processor::step()](https://developer.wordpress.org/reference/classes/wp_html_processor/step/)
 * Steps through the HTML document and stop at the next tag, if any.
 * Used by [0 functions](https://developer.wordpress.org/reference/classes/wp_html_processor/step/#used-by)
   | Uses [7 functions](https://developer.wordpress.org/reference/classes/wp_html_processor/step/#uses)
   | Source: [wp-includes/html-api/class-wp-html-processor.php:1004](https://github.com/WordPress/wordpress-develop/blob/7.0/src/wp-includes/html-api/class-wp-html-processor.php#L1004-L1174)
 * method[WP_HTML_Processor::get_breadcrumbs()](https://developer.wordpress.org/reference/classes/wp_html_processor/get_breadcrumbs/)
 * Computes the HTML breadcrumbs for the currently-matched node, if matched.
 * Used by [0 functions](https://developer.wordpress.org/reference/classes/wp_html_processor/get_breadcrumbs/#used-by)
   | Uses [0 functions](https://developer.wordpress.org/reference/classes/wp_html_processor/get_breadcrumbs/#uses)
   | Source: [wp-includes/html-api/class-wp-html-processor.php:1192](https://github.com/WordPress/wordpress-develop/blob/7.0/src/wp-includes/html-api/class-wp-html-processor.php#L1192-L1194)
 * method[WP_HTML_Processor::step_in_body()](https://developer.wordpress.org/reference/classes/wp_html_processor/step_in_body/)
 * Parses next element in the ‘in body’ insertion mode.
 * Used by [0 functions](https://developer.wordpress.org/reference/classes/wp_html_processor/step_in_body/#used-by)
   | Uses [0 functions](https://developer.wordpress.org/reference/classes/wp_html_processor/step_in_body/#uses)
   | Source: [wp-includes/html-api/class-wp-html-processor.php:2189](https://github.com/WordPress/wordpress-develop/blob/7.0/src/wp-includes/html-api/class-wp-html-processor.php#L2189-L3197)
 * method[WP_HTML_Processor::bookmark_tag()](https://developer.wordpress.org/reference/classes/wp_html_processor/bookmark_tag/)
 * Creates a new bookmark for the currently-matched tag and returns the generated
   name.
 * Used by [0 functions](https://developer.wordpress.org/reference/classes/wp_html_processor/bookmark_tag/#used-by)
   | Uses [0 functions](https://developer.wordpress.org/reference/classes/wp_html_processor/bookmark_tag/#uses)
   | Source: [wp-includes/html-api/class-wp-html-processor.php:790](https://github.com/WordPress/wordpress-develop/blob/7.0/src/wp-includes/html-api/class-wp-html-processor.php#L790-L801)
 * class[WP_HTML_Processor](https://developer.wordpress.org/reference/classes/wp_html_processor/)
 * Core class used to safely parse and modify an HTML document.
 * Used by [0 functions](https://developer.wordpress.org/reference/classes/wp_html_processor/#used-by)
   | Uses [1 function](https://developer.wordpress.org/reference/classes/wp_html_processor/#uses)
   | Source: [wp-includes/html-api/class-wp-html-processor.php:144](https://github.com/WordPress/wordpress-develop/blob/7.0/src/wp-includes/html-api/class-wp-html-processor.php#L144-L6745)
 * method[WP_HTML_Processor::create_fragment()](https://developer.wordpress.org/reference/classes/wp_html_processor/create_fragment/)
 * Creates an HTML processor in the fragment parsing mode.
 * Used by [0 functions](https://developer.wordpress.org/reference/classes/wp_html_processor/create_fragment/#used-by)
   | Uses [2 functions](https://developer.wordpress.org/reference/classes/wp_html_processor/create_fragment/#uses)
   | Source: [wp-includes/html-api/class-wp-html-processor.php:297](https://github.com/WordPress/wordpress-develop/blob/7.0/src/wp-includes/html-api/class-wp-html-processor.php#L297-L331)
 * method[WP_HTML_Processor::__construct()](https://developer.wordpress.org/reference/classes/wp_html_processor/__construct/)
 * Constructor.
 * Used by [0 functions](https://developer.wordpress.org/reference/classes/wp_html_processor/__construct/#used-by)
   | Uses [5 functions](https://developer.wordpress.org/reference/classes/wp_html_processor/__construct/#uses)
   | Source: [wp-includes/html-api/class-wp-html-processor.php:383](https://github.com/WordPress/wordpress-develop/blob/7.0/src/wp-includes/html-api/class-wp-html-processor.php#L383-L436)
 * method[WP_HTML_Processor::get_last_error()](https://developer.wordpress.org/reference/classes/wp_html_processor/get_last_error/)
 * Returns the last error, if any.
 * Used by [1 function](https://developer.wordpress.org/reference/classes/wp_html_processor/get_last_error/#used-by)
   | Uses [0 functions](https://developer.wordpress.org/reference/classes/wp_html_processor/get_last_error/#uses)
   | Source: [wp-includes/html-api/class-wp-html-processor.php:642](https://github.com/WordPress/wordpress-develop/blob/7.0/src/wp-includes/html-api/class-wp-html-processor.php#L642-L644)

 [Previous Page](https://developer.wordpress.org/reference/files/wp-includes/html-api/class-wp-html-processor.php/page/2/?output_format=md)

[1](https://developer.wordpress.org/reference/files/wp-includes/html-api/class-wp-html-processor.php/?output_format=md)
[2](https://developer.wordpress.org/reference/files/wp-includes/html-api/class-wp-html-processor.php/page/2/?output_format=md)
3