diff --git a/lib/compat/wordpress-6.3/html-api/class-gutenberg-html-tag-processor-6-3.php b/lib/compat/wordpress-6.3/html-api/class-gutenberg-html-tag-processor-6-3.php
index 474151c06cb7bd..feebe3fae13c1e 100644
--- a/lib/compat/wordpress-6.3/html-api/class-gutenberg-html-tag-processor-6-3.php
+++ b/lib/compat/wordpress-6.3/html-api/class-gutenberg-html-tag-processor-6-3.php
@@ -274,7 +274,7 @@ class Gutenberg_HTML_Tag_Processor_6_3 {
* @since 6.2.0
* @var string
*/
- private $html;
+ protected $html;
/**
* The last query passed to next_tag().
@@ -722,7 +722,7 @@ public function set_bookmark( $name ) {
}
$this->bookmarks[ $name ] = new WP_HTML_Span(
- $this->tag_name_starts_at - 1,
+ $this->tag_name_starts_at - ( $this->is_closing_tag ? 2 : 1 ),
$this->tag_ends_at
);
@@ -1519,7 +1519,7 @@ public function seek( $bookmark_name ) {
$this->bytes_already_parsed = $this->bookmarks[ $bookmark_name ]->start;
$this->bytes_already_copied = $this->bytes_already_parsed;
$this->output_buffer = substr( $this->html, 0, $this->bytes_already_copied );
- return $this->next_tag();
+ return $this->next_tag( array( 'tag_closers' => 'visit' ) );
}
/**