Skip to content

Commit adfe657

Browse files
committed
Slide into the INSERTION MODE when parsing PLAINTEXT
1 parent d2f073d commit adfe657

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -163,7 +163,7 @@ class WP_HTML_Processor extends WP_HTML_Tag_Processor {
163163
*
164164
* @var WP_HTML_Processor_State
165165
*/
166-
private $state;
166+
protected $state;
167167

168168
/**
169169
* Used to create unique bookmark names.

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -975,7 +975,7 @@ private function base_class_next_token(): bool {
975975
}
976976

977977
if ( 'PLAINTEXT' === $tag_name ) {
978-
if ( WP_HTML_Processor_State::INSERTION_MODE_IN_SELECT === ( $this->insertion_mode ?? null ) ) {
978+
if ( WP_HTML_Processor_State::INSERTION_MODE_IN_SELECT === ( $this->state->insertion_mode ?? null ) ) {
979979
return true;
980980
}
981981

0 commit comments

Comments
 (0)