We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
<!----->
1 parent 1ced6cf commit 2481fcbCopy full SHA for 2481fcb
1 file changed
tests/phpunit/tests/html-api/wpHtmlTagProcessor-token-scanning.php
@@ -581,6 +581,26 @@ public function test_basic_assertion_html_comment() {
581
);
582
}
583
584
+ /**
585
+ * Ensures that <!-----> HTML comment is properly parsed.
586
+ *
587
+ * @ticket 60170
588
589
+ * @since 6.5.0
590
591
+ * @covers WP_HTML_Tag_Processor::next_token
592
+ */
593
+ public function test_html_comment_single_dash() {
594
+ $processor = WP_HTML_Processor::create_fragment( '<!----->' );
595
+ $processor->next_token();
596
+
597
+ $this->assertSame(
598
+ '-',
599
+ $processor->get_modifiable_text(),
600
+ 'Found incorrect modifiable text.'
601
+ );
602
+ }
603
604
/**
605
* Ensures that normative DOCTYPE elements are properly parsed.
606
*
0 commit comments