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 @@ -1720,9 +1720,11 @@ public function data_next_tag_ignores_script_tag_contents() {
17201720 * See https://html.spec.whatwg.org/#parse-error-invalid-first-character-of-tag-name
17211721 *
17221722 * @ticket 58007
1723+ *
17231724 * @dataProvider data_next_tag_ignores_invalid_first_character_of_tag_name_comments
17241725 *
1725- * @param string $html_with_markers HTML containing an invalid tag closer whose element before and element after contain the "start" and "end" CSS classes.
1726+ * @param string $html_with_markers HTML containing an invalid tag closer whose element before and
1727+ * element after contain the "start" and "end" CSS classes.
17261728 */
17271729 public function test_next_tag_ignores_invalid_first_character_of_tag_name_comments ( $ html_with_markers ) {
17281730 $ p = new WP_HTML_Tag_Processor ( $ html_with_markers );
@@ -1735,8 +1737,6 @@ public function test_next_tag_ignores_invalid_first_character_of_tag_name_commen
17351737 /**
17361738 * Data provider.
17371739 *
1738- * @ticket 58007
1739- *
17401740 * @return array[]
17411741 */
17421742 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