mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 10:48:11 +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
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)) {
|
|| (token.is_end_tag() && token.tag_name() == HTML::TagNames::table)) {
|
||||||
|
|
||||||
if (!m_stack_of_open_elements.has_in_table_scope(HTML::TagNames::tbody)
|
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::thead)
|
||||||
|| !m_stack_of_open_elements.has_in_table_scope(HTML::TagNames::tfoot)) {
|
&& !m_stack_of_open_elements.has_in_table_scope(HTML::TagNames::tfoot)) {
|
||||||
PARSE_ERROR();
|
PARSE_ERROR();
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue