Changeset 59535
- Timestamp:
- 12/18/2024 06:38:58 PM (3 months ago)
- Location:
- branches/6.7
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/6.7
-
branches/6.7/src/wp-includes/html-api/class-wp-html-processor.php
r59411 r59535 558 558 } 559 559 560 if ( isset( $query['tag_name'] ) ) { 561 $query['tag_name'] = strtoupper( $query['tag_name'] ); 562 } 563 560 564 $needs_class = ( isset( $query['class_name'] ) && is_string( $query['class_name'] ) ) 561 565 ? $query['class_name'] -
branches/6.7/tests/phpunit/tests/html-api/wpHtmlProcessor.php
r59248 r59535 883 883 $this->assertTrue( $processor->is_tag_closer() ); 884 884 } 885 886 /** 887 * Ensure that lowercased tag_name query matches tags case-insensitively. 888 * 889 * @group 62427 890 */ 891 public function test_next_tag_lowercase_tag_name() { 892 // The upper case <DIV> is irrelevant but illustrates the case-insentivity. 893 $processor = WP_HTML_Processor::create_fragment( '<section><DIV>' ); 894 $this->assertTrue( $processor->next_tag( array( 'tag_name' => 'div' ) ) ); 895 896 // The upper case <RECT> is irrelevant but illustrates the case-insentivity. 897 $processor = WP_HTML_Processor::create_fragment( '<svg><RECT>' ); 898 $this->assertTrue( $processor->next_tag( array( 'tag_name' => 'rect' ) ) ); 899 } 885 900 }
Note: See TracChangeset
for help on using the changeset viewer.