From 568368c50745db2b452e4bc950b546436f1b7599 Mon Sep 17 00:00:00 2001 From: Jon Surrell Date: Tue, 30 Jun 2026 21:14:28 +0200 Subject: [PATCH 1/2] Fix incorrect test --- tests/phpunit/tests/html-api/wpHtmlTagProcessor.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/phpunit/tests/html-api/wpHtmlTagProcessor.php b/tests/phpunit/tests/html-api/wpHtmlTagProcessor.php index dfb9b16442045..62c1d19a6ebf6 100644 --- a/tests/phpunit/tests/html-api/wpHtmlTagProcessor.php +++ b/tests/phpunit/tests/html-api/wpHtmlTagProcessor.php @@ -114,7 +114,7 @@ public static function data_has_self_closing_flag() { 'Self-closing flag after attribute' => array( '
', true ), 'Slash inside unquoted attribute value' => array( '
', false ), 'Slash only unquoted attribute value' => array( '
', false ), - 'Attribute "=" with value ""' => array( '
', false ), + 'Attribute "=" with value ""' => array( '
', true ), 'Self-closing flag after quoted attribute' => array( '
', true ), 'Self-closing flag after boolean attribute' => array( '
', true ), 'Ignored "/" and whitespace' => array( '
', false ), From 7fe18221e91f4c2f10917f3e2d88b303b8b66611 Mon Sep 17 00:00:00 2001 From: Jon Surrell Date: Tue, 30 Jun 2026 21:23:48 +0200 Subject: [PATCH 2/2] Add another tricky assertion --- tests/phpunit/tests/html-api/wpHtmlTagProcessor.php | 1 + 1 file changed, 1 insertion(+) diff --git a/tests/phpunit/tests/html-api/wpHtmlTagProcessor.php b/tests/phpunit/tests/html-api/wpHtmlTagProcessor.php index 62c1d19a6ebf6..88762ddbb60c4 100644 --- a/tests/phpunit/tests/html-api/wpHtmlTagProcessor.php +++ b/tests/phpunit/tests/html-api/wpHtmlTagProcessor.php @@ -115,6 +115,7 @@ public static function data_has_self_closing_flag() { 'Slash inside unquoted attribute value' => array( '
', false ), 'Slash only unquoted attribute value' => array( '
', false ), 'Attribute "=" with value ""' => array( '
', true ), + 'Attribute "=" with value "/"' => array( '
', false ), 'Self-closing flag after quoted attribute' => array( '
', true ), 'Self-closing flag after boolean attribute' => array( '
', true ), 'Ignored "/" and whitespace' => array( '
', false ),