diff --git a/src/wp-includes/html-api/class-wp-html-open-elements.php b/src/wp-includes/html-api/class-wp-html-open-elements.php index aeee107250895..c5d0a7b9fcd30 100644 --- a/src/wp-includes/html-api/class-wp-html-open-elements.php +++ b/src/wp-includes/html-api/class-wp-html-open-elements.php @@ -281,6 +281,7 @@ public function has_element_in_specific_scope( string $tag_name, $termination_li * > - th * > - marquee * > - object + * > - select * > - template * > - MathML mi * > - MathML mo @@ -312,6 +313,7 @@ public function has_element_in_scope( string $tag_name ): bool { 'TH', 'MARQUEE', 'OBJECT', + 'SELECT', 'TEMPLATE', 'math MI', @@ -362,6 +364,7 @@ public function has_element_in_list_item_scope( string $tag_name ): bool { 'MARQUEE', 'OBJECT', 'OL', + 'SELECT', 'TEMPLATE', 'UL', @@ -410,6 +413,7 @@ public function has_element_in_button_scope( string $tag_name ): bool { 'TH', 'MARQUEE', 'OBJECT', + 'SELECT', 'TEMPLATE', 'math MI', @@ -459,9 +463,8 @@ public function has_element_in_table_scope( string $tag_name ): bool { /** * Returns whether a particular element is in select scope. * - * This test differs from the others like it, in that its rules are inverted. - * Instead of arriving at a match when one of any tag in a termination group - * is reached, this one terminates if any other tag is reached. + * The "select scope" concept was removed from the HTML standard along with the + * customizable ` #errors -33: Stray start tag “menuitem”. +1:34: ERROR: End tag 'select' isn't allowed here. Currently open tags: html, body, select, menuitem. #document | | | | |