Changeset 58898
- Timestamp:
- 08/14/2024 09:17:22 PM (13 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/html-api/class-wp-html-processor.php
r58877 r58898 1502 1502 $this->state->active_formatting_elements->clear_up_to_last_marker(); 1503 1503 array_pop( $this->state->stack_of_template_insertion_modes ); 1504 $this->reset_insertion_mode ();1504 $this->reset_insertion_mode_appropriately(); 1505 1505 return true; 1506 1506 } … … 2956 2956 2957 2957 $this->state->stack_of_open_elements->pop_until( 'TABLE' ); 2958 $this->reset_insertion_mode ();2958 $this->reset_insertion_mode_appropriately(); 2959 2959 return $this->step( self::REPROCESS_CURRENT_NODE ); 2960 2960 … … 2969 2969 2970 2970 $this->state->stack_of_open_elements->pop_until( 'TABLE' ); 2971 $this->reset_insertion_mode ();2971 $this->reset_insertion_mode_appropriately(); 2972 2972 return true; 2973 2973 … … 3730 3730 } 3731 3731 $this->state->stack_of_open_elements->pop_until( 'SELECT' ); 3732 $this->reset_insertion_mode ();3732 $this->reset_insertion_mode_appropriately(); 3733 3733 return true; 3734 3734 … … 3746 3746 } 3747 3747 $this->state->stack_of_open_elements->pop_until( 'SELECT' ); 3748 $this->reset_insertion_mode ();3748 $this->reset_insertion_mode_appropriately(); 3749 3749 return $this->step( self::REPROCESS_CURRENT_NODE ); 3750 3750 … … 3801 3801 // @todo Indicate a parse error once it's possible. 3802 3802 $this->state->stack_of_open_elements->pop_until( 'SELECT' ); 3803 $this->reset_insertion_mode ();3803 $this->reset_insertion_mode_appropriately(); 3804 3804 return $this->step( self::REPROCESS_CURRENT_NODE ); 3805 3805 … … 3820 3820 } 3821 3821 $this->state->stack_of_open_elements->pop_until( 'SELECT' ); 3822 $this->reset_insertion_mode ();3822 $this->reset_insertion_mode_appropriately(); 3823 3823 return $this->step( self::REPROCESS_CURRENT_NODE ); 3824 3824 } … … 3955 3955 $this->state->active_formatting_elements->clear_up_to_last_marker(); 3956 3956 array_pop( $this->state->stack_of_template_insertion_modes ); 3957 $this->reset_insertion_mode ();3957 $this->reset_insertion_mode_appropriately(); 3958 3958 return $this->step( self::REPROCESS_CURRENT_NODE ); 3959 3959 } … … 5101 5101 * @see https://html.spec.whatwg.org/multipage/parsing.html#reset-the-insertion-mode-appropriately 5102 5102 */ 5103 p ublic function reset_insertion_mode(): void {5103 private function reset_insertion_mode_appropriately(): void { 5104 5104 // Set the first node. 5105 5105 $first_node = null;
Note: See TracChangeset
for help on using the changeset viewer.