- Timestamp:
- 07/04/2024 11:14:44 PM (10 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/html-api/class-wp-html-processor.php
r58656 r58676 1030 1030 1031 1031 $this->generate_implied_end_tags(); 1032 if ( $this->state->stack_of_open_elements->current_node()->node_name !== $token_name) {1032 if ( ! $this->state->stack_of_open_elements->current_node_is( $token_name ) ) { 1033 1033 // @todo Record parse error: this error doesn't impact parsing. 1034 1034 } … … 1095 1095 $this->generate_implied_end_tags(); 1096 1096 1097 if ( $this->state->stack_of_open_elements->current_node()->node_name !== $token_name) {1097 if ( ! $this->state->stack_of_open_elements->current_node_is( $token_name ) ) { 1098 1098 // @todo Record parse error: this error doesn't impact parsing. 1099 1099 } … … 1121 1121 $node_name = $is_li ? 'LI' : $node->node_name; 1122 1122 $this->generate_implied_end_tags( $node_name ); 1123 if ( $node_name !== $this->state->stack_of_open_elements->current_node()->node_name) {1123 if ( ! $this->state->stack_of_open_elements->current_node_is( $node_name ) ) { 1124 1124 // @todo Indicate a parse error once it's possible. This error does not impact the logic here. 1125 1125 } … … 1198 1198 $this->generate_implied_end_tags( $token_name ); 1199 1199 1200 if ( $token_name !== $this->state->stack_of_open_elements->current_node()->node_name) {1200 if ( ! $this->state->stack_of_open_elements->current_node_is( $token_name ) ) { 1201 1201 // @todo Indicate a parse error once it's possible. This error does not impact the logic here. 1202 1202 }
Note: See TracChangeset
for help on using the changeset viewer.