mirror of
https://github.com/LadybirdBrowser/ladybird
synced 2026-05-01 20:17:13 +02:00
LibWeb: A </table> inside <tbody> is not a parse error
This condition was backwards. Fixes parsing of google.com.
This commit is contained in:
Notes:
sideshowbarker
2024-07-19 05:28:24 +09:00
Author: https://github.com/awesomekling Commit: https://github.com/SerenityOS/serenity/commit/15b5dfc7941
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user