From 81dd7f513e35415667e733093e1b2884d3753cf6 Mon Sep 17 00:00:00 2001 From: Jon Surrell Date: Thu, 4 Jul 2024 13:28:22 +0200 Subject: [PATCH] Add OPTION, OPTGROUP to implied end tags --- src/wp-includes/html-api/class-wp-html-processor.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/wp-includes/html-api/class-wp-html-processor.php b/src/wp-includes/html-api/class-wp-html-processor.php index cc371519f775b..455612e52a090 100644 --- a/src/wp-includes/html-api/class-wp-html-processor.php +++ b/src/wp-includes/html-api/class-wp-html-processor.php @@ -2202,6 +2202,8 @@ private function generate_implied_end_tags( $except_for_this_element = null ) { 'DD', 'DT', 'LI', + 'OPTGROUP', + 'OPTION', 'P', ); @@ -2230,6 +2232,8 @@ private function generate_implied_end_tags_thoroughly() { 'DD', 'DT', 'LI', + 'OPTGROUP', + 'OPTION', 'P', );