File tree Expand file tree Collapse file tree
tests/phpunit/tests/html-api Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -971,7 +971,7 @@ private function skip_script_data() {
971971 * closing `>`; these are left for other methods.
972972 *
973973 * @since 6.2.0
974- * @since 6.3.0 Passes over invalid-tag-closer-comments like "</3 this is a comment>".
974+ * @since 6.2.1 Passes over invalid-tag-closer-comments like "</3 this is a comment>".
975975 *
976976 * @return bool Whether a tag was found before the end of the document.
977977 */
@@ -1042,9 +1042,7 @@ private function parse_next_tag() {
10421042 ) {
10431043 $ closer_at = $ at + 4 ;
10441044
1045- /*
1046- * Abruptly-closed empty comments are a sequence of dashes followed by `>`.
1047- */
1045+ // Abruptly-closed empty comments are a sequence of dashes followed by `>`.
10481046 $ span_of_dashes = strspn ( $ html , '- ' , $ closer_at );
10491047 if ( '> ' === $ html [ $ closer_at + $ span_of_dashes ] ) {
10501048 $ at = $ closer_at + $ span_of_dashes + 1 ;
Original file line number Diff line number Diff line change @@ -1670,9 +1670,11 @@ public function data_next_tag_ignores_script_tag_contents() {
16701670 * See https://html.spec.whatwg.org/#parse-error-invalid-first-character-of-tag-name
16711671 *
16721672 * @ticket 58007
1673+ *
16731674 * @dataProvider data_next_tag_ignores_invalid_first_character_of_tag_name_comments
16741675 *
1675- * @param string $html_with_markers HTML containing an invalid tag closer whose element before and element after contain the "start" and "end" CSS classes.
1676+ * @param string $html_with_markers HTML containing an invalid tag closer whose element before and
1677+ * element after contain the "start" and "end" CSS classes.
16761678 */
16771679 public function test_next_tag_ignores_invalid_first_character_of_tag_name_comments ( $ html_with_markers ) {
16781680 $ p = new WP_HTML_Tag_Processor ( $ html_with_markers );
@@ -1685,8 +1687,6 @@ public function test_next_tag_ignores_invalid_first_character_of_tag_name_commen
16851687 /**
16861688 * Data provider.
16871689 *
1688- * @ticket 58007
1689- *
16901690 * @return array[]
16911691 */
16921692 public function data_next_tag_ignores_invalid_first_character_of_tag_name_comments () {
You can’t perform that action at this time.
0 commit comments