Changeset 59248 for trunk/tests/phpunit/tests/html-api/wpHtmlProcessor.php
- Timestamp:
- 10/17/2024 05:46:31 PM (21 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/phpunit/tests/html-api/wpHtmlProcessor.php
r59099 r59248 864 864 ); 865 865 } 866 867 /** 868 * Ensures that the processor stops correctly on a FORM tag closer token. 869 * 870 * Form tag closers have complicated conditions. There was a bug where the processor 871 * would not stop correctly on a FORM tag closer token. Ensure this token is reachable. 872 * 873 * @ticket 61576 874 */ 875 public function test_ensure_form_tag_closer_token_is_reachable() { 876 $processor = WP_HTML_Processor::create_fragment( '<form></form>' ); 877 878 // Advance to </form>. 879 $processor->next_token(); 880 $processor->next_token(); 881 882 $this->assertSame( 'FORM', $processor->get_tag() ); 883 $this->assertTrue( $processor->is_tag_closer() ); 884 } 866 885 }
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)