Changeset 58858
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/html-api/class-wp-html-tag-processor.php
r58845 r58858 1910 1910 // No chance of finding a closer. 1911 1911 if ( $at + 3 > $doc_length ) { 1912 $this->parser_state = self::STATE_INCOMPLETE_INPUT; 1913 1912 1914 return false; 1913 1915 } -
trunk/tests/phpunit/tests/html-api/wpHtmlTagProcessor.php
r58845 r58858 2904 2904 $this->assertTrue( $processor->paused_at_incomplete_token() ); 2905 2905 } 2906 2907 /** 2908 * Test a bugfix where the input ends abruptly with a funky comment started. 2909 * 2910 * @ticket 61831 2911 */ 2912 public function test_unclosed_funky_comment_input_too_short() { 2913 $processor = new WP_HTML_Tag_Processor( '</#' ); 2914 $this->assertFalse( $processor->next_tag() ); 2915 $this->assertTrue( $processor->paused_at_incomplete_token() ); 2916 } 2906 2917 }
Note: See TracChangeset
for help on using the changeset viewer.