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 5e29fc7d15..e2632c80f6 100644
--- a/wp-includes/html-api/class-wp-html-tag-processor.php
+++ b/wp-includes/html-api/class-wp-html-tag-processor.php
@@ -2459,7 +2459,7 @@ class WP_HTML_Tag_Processor {
}
// Accumulate shift of the given pointer within this function call.
- if ( $diff->start <= $shift_this_point ) {
+ if ( $diff->start < $shift_this_point ) {
$accumulated_shift_for_given_point += $shift;
}
diff --git a/wp-includes/version.php b/wp-includes/version.php
index 580e389ad2..1c233f0c45 100644
--- a/wp-includes/version.php
+++ b/wp-includes/version.php
@@ -16,7 +16,7 @@
*
* @global string $wp_version
*/
-$wp_version = '6.7-beta3-59249';
+$wp_version = '6.7-beta3-59250';
/**
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.