diff --git a/wp-includes/html-api/class-wp-html-tag-processor.php b/wp-includes/html-api/class-wp-html-tag-processor.php
index 1b4db41bce..b437595bd9 100644
--- a/wp-includes/html-api/class-wp-html-tag-processor.php
+++ b/wp-includes/html-api/class-wp-html-tag-processor.php
@@ -2335,6 +2335,7 @@ class WP_HTML_Tag_Processor {
// Point this tag processor before the sought tag opener and consume it.
$this->bytes_already_parsed = $this->bookmarks[ $bookmark_name ]->start;
+ $this->parser_state = self::STATE_READY;
return $this->next_token();
}
diff --git a/wp-includes/version.php b/wp-includes/version.php
index fce571ba2a..66c797520f 100644
--- a/wp-includes/version.php
+++ b/wp-includes/version.php
@@ -16,7 +16,7 @@
*
* @global string $wp_version
*/
-$wp_version = '6.5-alpha-57526';
+$wp_version = '6.5-alpha-57527';
/**
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.