Skip to content

Commit

Permalink
Better text handling in column group
Browse files Browse the repository at this point in the history
  • Loading branch information
sirreal committed Jul 31, 2024
1 parent be3e30f commit 5dd41ff
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/wp-includes/html-api/class-wp-html-processor.php
Original file line number Diff line number Diff line change
Expand Up @@ -3090,7 +3090,8 @@ private function step_in_column_group(): bool {
case '#text':
$current_token = $this->bookmarks[ $this->state->current_token->bookmark_name ];
if (
strspn( $this->html, "\u{0009}\u{000A}\u{000C}\u{000D}\u{0020}", $current_token->start, $current_token->length ) === $current_token->length
// U+0000 (NULL) Is not mentiond but is included here. Null bytes should be completely ignored.
strspn( $this->html, "\u{0000}\u{0009}\u{000A}\u{000C}\u{000D}\u{0020}", $current_token->start, $current_token->length ) === $current_token->length
) {
$this->insert_html_element( $this->state->current_token );
return true;
Expand Down

0 comments on commit 5dd41ff

Please sign in to comment.