Changeset 59463
- Timestamp:
- 11/27/2024 09:52:21 AM (3 months ago)
- Location:
- trunk/src/wp-includes/html-api
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/html-api/class-wp-html-processor-state.php
r58985 r59463 361 361 * 362 362 * @since 6.4.0 363 * 364 * @see https://html.spec.whatwg.org/#concept-frag-parse-context 365 * 366 * @var [string, array]|null 363 * @deprecated 6.8.0 WP_HTML_Processor tracks the context_node internally. 364 * 365 * @var null 367 366 */ 368 367 public $context_node = null; -
trunk/src/wp-includes/html-api/class-wp-html-processor.php
r59450 r59463 299 299 300 300 $processor = new static( $html, self::CONSTRUCTOR_UNLOCK_CODE ); 301 $processor->state->context_node = array( 'BODY', array() );302 301 $processor->state->insertion_mode = WP_HTML_Processor_State::INSERTION_MODE_IN_BODY; 303 302 $processor->state->encoding = $encoding; … … 318 317 $context_node = new WP_HTML_Token( 319 318 'context-node', 320 $processor->state->context_node[0],319 'BODY', 321 320 false 322 321 ); … … 492 491 $fragment_processor->context_node->bookmark_name = 'context-node'; 493 492 $fragment_processor->context_node->on_destroy = null; 494 495 $fragment_processor->state->context_node = array( $fragment_processor->context_node->node_name, array() );496 497 $attribute_names = $this->get_attribute_names_with_prefix( '' );498 if ( null !== $attribute_names ) {499 foreach ( $attribute_names as $name ) {500 $fragment_processor->state->context_node[1][ $name ] = $this->get_attribute( $name );501 }502 }503 493 504 494 $fragment_processor->breadcrumbs = array( 'HTML', $fragment_processor->context_node->node_name );
Note: See TracChangeset
for help on using the changeset viewer.