Skip to content

Commit

Permalink
All tests passing except the ones that need to change.
Browse files Browse the repository at this point in the history
  • Loading branch information
dmsnell committed Dec 16, 2023
1 parent f3f6f1b commit 4e0c799
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/wp-includes/html-api/class-wp-html-tag-processor.php
Original file line number Diff line number Diff line change
Expand Up @@ -891,7 +891,7 @@ public function next_token() {
*/
$t = $this->html[ $this->tag_name_starts_at ];
if (
$this->is_closing_tag &&
$this->is_closing_tag ||
! (
'i' === $t || 'I' === $t ||
'n' === $t || 'N' === $t ||
Expand All @@ -911,7 +911,6 @@ public function next_token() {
'IFRAME' !== $tag_name &&
'NOEMBED' !== $tag_name &&
'NOFRAMES' !== $tag_name &&
'NOSCRIPT' !== $tag_name &&
'STYLE' !== $tag_name &&
'XMP' !== $tag_name
) {
Expand Down Expand Up @@ -1635,7 +1634,7 @@ private function parse_next_tag() {
$this->token_length = $closer_at + 4 - $this->token_starts_at;
$this->text_starts_at = $this->token_starts_at + 9;
$this->text_length = $closer_at - $this->text_starts_at;
$this->bytes_already_parsed = $closer_at + 4;
$this->bytes_already_parsed = $closer_at + 3;
return true;
}

Expand Down

0 comments on commit 4e0c799

Please sign in to comment.