WordPress/wp-includes/html-api
dmsnell fd1cbd8980 HTML API: Add subclassed has_bookmark() and fix seek()
The WP_HTML_Processor::has_bookmark() method has not correctly reported bookmarks
which have been set, because it wraps the given bookmark names when setting them.
Additionally, WP_HTML_Processor::seek() does not seek to correct location if HTML
has been updated because it wasn't flushing enqueued updates to the document.

In this patch both problems are resolved and added tests guard these behaviors
against future regressions.

Developed in https://github.com/WordPress/wordpress-develop/pull/6039
Discussed in https://core.trac.wordpress.org/ticket/60474

Follow-up to [56274].
Props dmsnell, jonsurrell.
Fixes #60474.


Built from https://develop.svn.wordpress.org/trunk@57582


git-svn-id: http://core.svn.wordpress.org/trunk@57083 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2024-02-10 22:54:13 +00:00
..
class-wp-html-active-formatting-elements.php
class-wp-html-attribute-token.php
class-wp-html-open-elements.php HTML API: Add support for list elements. 2024-01-10 14:05:17 +00:00
class-wp-html-processor-state.php
class-wp-html-processor.php HTML API: Add subclassed has_bookmark() and fix seek() 2024-02-10 22:54:13 +00:00
class-wp-html-span.php
class-wp-html-tag-processor.php HTML API: Join text nodes on invalid-tag-name boundaries. 2024-02-06 19:23:13 +00:00
class-wp-html-text-replacement.php
class-wp-html-token.php
class-wp-html-unsupported-exception.php