- Timestamp:
- 09/04/2024 04:32:37 AM (17 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/html-api/class-wp-html-processor.php
r58977 r58985 1081 1081 $doctype = $this->get_doctype_info(); 1082 1082 if ( null !== $doctype && 'quirks' === $doctype->indicated_compatability_mode ) { 1083 $this-> state->document_mode = WP_HTML_Processor_State::QUIRKS_MODE;1083 $this->compat_mode = WP_HTML_Tag_Processor::QUIRKS_MODE; 1084 1084 } 1085 1085 … … 1096 1096 */ 1097 1097 initial_anything_else: 1098 $this-> state->document_mode = WP_HTML_Processor_State::QUIRKS_MODE;1098 $this->compat_mode = WP_HTML_Tag_Processor::QUIRKS_MODE; 1099 1099 $this->state->insertion_mode = WP_HTML_Processor_State::INSERTION_MODE_BEFORE_HTML; 1100 1100 return $this->step( self::REPROCESS_CURRENT_NODE ); … … 2449 2449 */ 2450 2450 if ( 2451 WP_HTML_ Processor_State::QUIRKS_MODE !== $this->state->document_mode &&2451 WP_HTML_Tag_Processor::QUIRKS_MODE !== $this->compat_mode && 2452 2452 $this->state->stack_of_open_elements->has_p_in_button_scope() 2453 2453 ) { … … 4938 4938 * 4939 4939 * @since 6.6.0 Subclassed for the HTML Processor. 4940 * 4941 * @todo When reconstructing active formatting elements with attributes, find a way 4942 * to indicate if the virtually-reconstructed formatting elements contain the 4943 * wanted class name. 4940 4944 * 4941 4945 * @param string $wanted_class Look for this CSS class name, ASCII case-insensitive.
Note: See TracChangeset
for help on using the changeset viewer.