From e9e3d983f4c70052be70632e86ba774191154cad Mon Sep 17 00:00:00 2001 From: Mike Dalessio Date: Wed, 3 May 2023 08:55:24 -0400 Subject: [PATCH] feat: gumbo support for
in ` [[whatwg/html#3410](https://github.com/whatwg/html/issues/3410), [whatwg/html#9124](https://github.com/whatwg/html/pull/9124)] ### Deprecated diff --git a/gumbo-parser/src/parser.c b/gumbo-parser/src/parser.c index 0ed8731a8c4..67812b23fe4 100644 --- a/gumbo-parser/src/parser.c +++ b/gumbo-parser/src/parser.c @@ -3964,6 +3964,18 @@ static void handle_in_select(GumboParser* parser, GumboToken* token) { insert_element_from_token(parser, token); return; } + if (tag_is(token, kStartTag, GUMBO_TAG_HR)) { + if (node_html_tag_is(get_current_node(parser), GUMBO_TAG_OPTION)) { + pop_current_node(parser); + } + if (node_html_tag_is(get_current_node(parser), GUMBO_TAG_OPTGROUP)) { + pop_current_node(parser); + } + insert_element_from_token(parser, token); + pop_current_node(parser); + acknowledge_self_closing_tag(parser); + return; + } if (tag_is(token, kEndTag, GUMBO_TAG_OPTGROUP)) { GumboVector* open_elements = &parser->_parser_state->_open_elements; if (