- Timestamp:
- 01/30/2024 10:07:42 PM (12 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/phpunit/tests/html-api/wpHtmlTagProcessor.php
r57348 r57489 2716 2716 $this->assertFalse( $result, 'Did not handle "</ " html properly.' ); 2717 2717 } 2718 2719 /** 2720 * Ensures that non-tag syntax starting with `<` is consumed inside a text node. 2721 * 2722 * @ticket 60385 2723 */ 2724 public function test_single_text_node_with_taglike_text() { 2725 $p = new WP_HTML_Tag_Processor( 'test< /A>' ); 2726 $p->next_token(); 2727 $this->assertSame( '#text', $p->get_token_type(), 'Did not find text node.' ); 2728 $this->assertSame( 'test< /A>', $p->get_modifiable_text(), 'Did not find complete text node.' ); 2729 } 2718 2730 }
Note: See TracChangeset
for help on using the changeset viewer.