Skip to content

Commit 24da950

Browse files
committed
Remove assertions
1 parent b8813a9 commit 24da950

1 file changed

Lines changed: 0 additions & 4 deletions

File tree

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

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2210,8 +2210,6 @@ private function parse_all_attributes(): void {
22102210
? 1 + strcspn( $this->html, "=/> \t\f\r\n", $this->bytes_already_parsed + 1 )
22112211
: strcspn( $this->html, "=/> \t\f\r\n", $this->bytes_already_parsed );
22122212

2213-
assert( $name_length > 0 );
2214-
22152213
if ( $this->bytes_already_parsed + $name_length >= $doc_length ) {
22162214
$this->parser_state = self::STATE_INCOMPLETE_INPUT;
22172215
break;
@@ -2314,8 +2312,6 @@ private function parse_all_attributes(): void {
23142312
$this->duplicate_attributes[ $comparable_name ][] = $duplicate_span;
23152313
}
23162314
}
2317-
2318-
assert( self::STATE_INCOMPLETE_INPUT === $this->parser_state || '>' === $this->html[ $this->bytes_already_parsed ] );
23192315
}
23202316

23212317
/**

0 commit comments

Comments
 (0)