Skip to content

Commit

Permalink
Fix off-by-1
Browse files Browse the repository at this point in the history
  • Loading branch information
sirreal committed May 24, 2024
1 parent 57e737c commit b7b2876
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/wp-includes/html-api/class-wp-html-tag-processor.php
Original file line number Diff line number Diff line change
Expand Up @@ -2687,7 +2687,7 @@ public function has_self_closing_flag() {
* <figure />
* ^ this appears one character before the end of the closing ">".
*/
return '/' === $this->html[ $this->token_starts_at + $this->token_length - 1 ];
return '/' === $this->html[ $this->token_starts_at + $this->token_length - 2 ];
}

/**
Expand Down

0 comments on commit b7b2876

Please sign in to comment.