Skip to content

Commit 24a837c

Browse files
committed
PICKME: Fix off-by-one active formatting removal
1 parent d68b404 commit 24a837c

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2357,8 +2357,8 @@ private function step_in_body(): bool {
23572357
case 'A':
23582358
$this->run_adoption_agency_algorithm();
23592359
$this->state->active_formatting_elements->remove_node( $item );
2360-
$this->state->stack_of_open_elements->remove_node( $item );
2361-
break;
2360+
$this->state->stack_of_open_elements->remove_node( $item->token );
2361+
break 2;
23622362
}
23632363
}
23642364

0 commit comments

Comments
 (0)