- Timestamp:
- 09/27/2024 12:42:47 AM (18 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/html-api/class-wp-html-processor.php
r59076 r59099 394 394 $this->element_queue[] = new WP_HTML_Stack_Event( $token, WP_HTML_Stack_Event::PUSH, $provenance ); 395 395 396 $this->change_parsing_namespace( $token-> namespace );396 $this->change_parsing_namespace( $token->integration_node_type ? 'html' : $token->namespace ); 397 397 } 398 398 ); … … 404 404 $provenance = ( ! $same_node || $is_virtual ) ? 'virtual' : 'real'; 405 405 $this->element_queue[] = new WP_HTML_Stack_Event( $token, WP_HTML_Stack_Event::POP, $provenance ); 406 406 407 $adjusted_current_node = $this->get_adjusted_current_node(); 407 $this->change_parsing_namespace( 408 $adjusted_current_node 409 ? $adjusted_current_node->namespace 410 : 'html' 411 ); 408 409 if ( $adjusted_current_node ) { 410 $this->change_parsing_namespace( $adjusted_current_node->integration_node_type ? 'html' : $adjusted_current_node->namespace ); 411 } else { 412 $this->change_parsing_namespace( 'html' ); 413 } 412 414 } 413 415 );
Note: See TracChangeset
for help on using the changeset viewer.