Skip to content

Commit 6316e4b

Browse files
committed
Pop from open elements instead of removing items
1 parent 3971e2b commit 6316e4b

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2261,7 +2261,7 @@ private function clear_stack_to_table_context() {
22612261
) {
22622262
break;
22632263
}
2264-
$this->state->stack_of_open_elements->remove_node( $item );
2264+
$this->state->stack_of_open_elements->pop();
22652265
}
22662266
}
22672267

@@ -2287,7 +2287,7 @@ private function clear_stack_to_table_body_context() {
22872287
) {
22882288
break;
22892289
}
2290-
$this->state->stack_of_open_elements->remove_node( $item );
2290+
$this->state->stack_of_open_elements->pop();
22912291
}
22922292
}
22932293

@@ -2311,7 +2311,7 @@ private function clear_stack_to_table_row_context() {
23112311
) {
23122312
break;
23132313
}
2314-
$this->state->stack_of_open_elements->remove_node( $item );
2314+
$this->state->stack_of_open_elements->pop();
23152315
}
23162316
}
23172317

0 commit comments

Comments
 (0)