Skip to content

Commit

Permalink
Fix handling of <hr> inside <select>
Browse files Browse the repository at this point in the history
  • Loading branch information
kovidgoyal committed Nov 19, 2023
1 parent df33290 commit 1170e87
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions gumbo/parser.c
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@

#include <assert.h>
#include <limits.h>
#include <stdarg.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>

Expand Down Expand Up @@ -3841,7 +3841,7 @@ static bool handle_in_select(GumboParser* parser, GumboToken* token) {
}
insert_element_from_token(parser, token);
return true;
case GUMBO_TAG_OPTGROUP:
case GUMBO_TAG_OPTGROUP: case GUMBO_TAG_HR:
if (node_html_tag_is(get_current_node(parser), GUMBO_TAG_OPTION)) {
pop_current_node(parser);
}
Expand Down

0 comments on commit 1170e87

Please sign in to comment.