From 774cae5b642e688d0dc3bc13bb18e2d187b40a51 Mon Sep 17 00:00:00 2001 From: Jon Surrell Date: Fri, 8 Nov 2024 18:30:34 +0100 Subject: [PATCH 1/5] Add test --- .../tests/html-api/wpHtmlProcessor.php | 21 +++++++++++++++++++ 1 file changed, 21 insertions(+) diff --git a/tests/phpunit/tests/html-api/wpHtmlProcessor.php b/tests/phpunit/tests/html-api/wpHtmlProcessor.php index 6638f7600252c..dc4c4e2e23380 100644 --- a/tests/phpunit/tests/html-api/wpHtmlProcessor.php +++ b/tests/phpunit/tests/html-api/wpHtmlProcessor.php @@ -561,6 +561,27 @@ public function test_expects_closer_foreign_content_self_closing() { $this->assertTrue( $processor->expects_closer() ); } + /** + * Ensures that expects_closer works for void-like elements in foreign content. + * + * For example, `