From 15b5dfc79412fd0bf5ca21d8c34a3e6b76ddccc5 Mon Sep 17 00:00:00 2001 From: Andreas Kling Date: Sun, 21 Jun 2020 17:30:18 +0200 Subject: [PATCH] LibWeb: A inside is not a parse error This condition was backwards. Fixes parsing of google.com. --- Libraries/LibWeb/Parser/HTMLDocumentParser.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Libraries/LibWeb/Parser/HTMLDocumentParser.cpp b/Libraries/LibWeb/Parser/HTMLDocumentParser.cpp index 9019461bce..712dd18fb5 100644 --- a/Libraries/LibWeb/Parser/HTMLDocumentParser.cpp +++ b/Libraries/LibWeb/Parser/HTMLDocumentParser.cpp @@ -1899,8 +1899,8 @@ void HTMLDocumentParser::handle_in_table_body(HTMLToken& token) || (token.is_end_tag() && token.tag_name() == HTML::TagNames::table)) { if (!m_stack_of_open_elements.has_in_table_scope(HTML::TagNames::tbody) - || !m_stack_of_open_elements.has_in_table_scope(HTML::TagNames::thead) - || !m_stack_of_open_elements.has_in_table_scope(HTML::TagNames::tfoot)) { + && !m_stack_of_open_elements.has_in_table_scope(HTML::TagNames::thead) + && !m_stack_of_open_elements.has_in_table_scope(HTML::TagNames::tfoot)) { PARSE_ERROR(); return; }