Skip to content

Commit c10e0d3

Browse files
committed
Revert "Break on a tag-closing > before the attribute whitespace scan"
This reverts commit 03d8747.
1 parent 14c9124 commit c10e0d3

1 file changed

Lines changed: 0 additions & 5 deletions

File tree

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

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2172,11 +2172,6 @@ private function parse_all_attributes(): void {
21722172
$doc_length = strlen( $this->html );
21732173

21742174
while ( true ) {
2175-
// A tag-closing `>` needs no whitespace scan.
2176-
if ( $this->bytes_already_parsed < $doc_length && '>' === $this->html[ $this->bytes_already_parsed ] ) {
2177-
break;
2178-
}
2179-
21802175
// Skip whitespace and slashes.
21812176
$skipped_length = strspn( $this->html, " \t\f\r\n/", $this->bytes_already_parsed );
21822177
$this->bytes_already_parsed += $skipped_length;

0 commit comments

Comments
 (0)