- Timestamp:
- 08/23/2024 02:53:59 PM (2 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/phpunit/tests/html-api/wpHtmlTagProcessor.php
r58893 r58925 2940 2940 $this->assertTrue( $processor->paused_at_incomplete_token() ); 2941 2941 } 2942 2943 /** 2944 * Test basic DOCTYPE handling. 2945 * 2946 * @ticket 61576 2947 */ 2948 public function test_doctype_doc_name() { 2949 $processor = new WP_HTML_Tag_Processor( '<!DOCTYPE html>' ); 2950 $this->assertTrue( $processor->next_token() ); 2951 $doctype = $processor->get_doctype_info(); 2952 $this->assertNotNull( $doctype ); 2953 $this->assertSame( 'html', $doctype->name ); 2954 $this->assertSame( 'no-quirks', $doctype->indicated_compatability_mode ); 2955 $this->assertNull( $doctype->public_identifier ); 2956 $this->assertNull( $doctype->system_identifier ); 2957 } 2942 2958 }
Note:
See TracChangeset
for help on using the changeset viewer.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)