mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-04-21 03:55:24 +00: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:
parent
1c2b6b074e
commit
15b5dfc794
Notes:
sideshowbarker
2024-07-19 05:28:24 +09:00
Author: https://github.com/awesomekling Commit: https://github.com/SerenityOS/serenity/commit/15b5dfc7941
1 changed files with 2 additions and 2 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue