diff options
author | Andreas Kling <kling@serenityos.org> | 2020-06-15 19:57:20 +0200 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2020-06-15 19:57:20 +0200 |
commit | 2f26d4c6a1ae9bfaf76787277f81e2eb7bb8ac5a (patch) | |
tree | bc24d8612827595bd54550c071fbd0242507d7da | |
parent | 17d26b92f83741205b91e8d69153e86daa8bd008 (diff) | |
download | serenity-2f26d4c6a1ae9bfaf76787277f81e2eb7bb8ac5a.zip |
LibWeb: Fix broken parsing of </select> during "in select" insertion
-rw-r--r-- | Libraries/LibWeb/Parser/HTMLDocumentParser.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Libraries/LibWeb/Parser/HTMLDocumentParser.cpp b/Libraries/LibWeb/Parser/HTMLDocumentParser.cpp index 718c8e3ca5..0d8828fbf3 100644 --- a/Libraries/LibWeb/Parser/HTMLDocumentParser.cpp +++ b/Libraries/LibWeb/Parser/HTMLDocumentParser.cpp @@ -1933,7 +1933,7 @@ void HTMLDocumentParser::handle_in_select(HTMLToken& token) } if (token.is_end_tag() && token.tag_name() == HTML::TagNames::select) { - if (m_stack_of_open_elements.has_in_select_scope(HTML::TagNames::select)) { + if (!m_stack_of_open_elements.has_in_select_scope(HTML::TagNames::select)) { PARSE_ERROR(); return; } |