Changeset 57507
- Timestamp:
- 02/01/2024 12:41:40 AM (6 months ago)
- Location:
- trunk
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/html-api/class-wp-html-processor.php
r57348 r57507 432 432 433 433 if ( '#tag' === $this->get_token_type() ) { 434 $this->step( self:: REPROCESS_CURRENT_NODE );434 $this->step( self::PROCESS_CURRENT_NODE ); 435 435 } 436 436 … … 514 514 } 515 515 516 if ( self:: PROCESS_NEXT_NODE === $node_to_process ) {516 if ( self::== $node_to_process ) { 517 517 /* 518 518 * Void elements still hop onto the stack of open elements even though … … 533 533 $this->state->stack_of_open_elements->pop(); 534 534 } 535 535 } 536 537 if ( self::PROCESS_NEXT_NODE === $node_to_process ) { 536 538 while ( parent::next_token() && '#tag' !== $this->get_token_type() ) { 537 539 continue; … … 1783 1785 1784 1786 /** 1787 1788 1789 1790 1791 1792 1793 1794 1795 1785 1796 * Indicates that the parser encountered unsupported markup and has bailed. 1786 1797 * -
trunk/tests/phpunit/tests/html-api/wpHtmlProcessor.php
r57343 r57507 179 179 $this->assertTrue( 180 180 $processor->next_tag(), 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 181 234 'Should have found the DIV as the second tag.' 182 235 );
Note: See TracChangeset
for help on using the changeset viewer.