Skip to content

Commit 4e0c799

Browse files
committed
All tests passing except the ones that need to change.
1 parent f3f6f1b commit 4e0c799

1 file changed

Lines changed: 2 additions & 3 deletions

File tree

src/wp-includes/html-api/class-wp-html-tag-processor.php

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -891,7 +891,7 @@ public function next_token() {
891891
*/
892892
$t = $this->html[ $this->tag_name_starts_at ];
893893
if (
894-
$this->is_closing_tag &&
894+
$this->is_closing_tag ||
895895
! (
896896
'i' === $t || 'I' === $t ||
897897
'n' === $t || 'N' === $t ||
@@ -911,7 +911,6 @@ public function next_token() {
911911
'IFRAME' !== $tag_name &&
912912
'NOEMBED' !== $tag_name &&
913913
'NOFRAMES' !== $tag_name &&
914-
'NOSCRIPT' !== $tag_name &&
915914
'STYLE' !== $tag_name &&
916915
'XMP' !== $tag_name
917916
) {
@@ -1635,7 +1634,7 @@ private function parse_next_tag() {
16351634
$this->token_length = $closer_at + 4 - $this->token_starts_at;
16361635
$this->text_starts_at = $this->token_starts_at + 9;
16371636
$this->text_length = $closer_at - $this->text_starts_at;
1638-
$this->bytes_already_parsed = $closer_at + 4;
1637+
$this->bytes_already_parsed = $closer_at + 3;
16391638
return true;
16401639
}
16411640

0 commit comments

Comments
 (0)