- Timestamp:
- 12/18/2024 06:38:58 PM (14 months ago)
- Location:
- branches/6.7
- Files:
-
- 2 edited
-
. (modified) (1 prop)
-
tests/phpunit/tests/html-api/wpHtmlProcessor.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
branches/6.7
-
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.