mirror of
https://github.com/SerenityOS/serenity.git
synced 2025-01-23 09:51:57 -05:00
LibWeb: Support "td" and "th" start tags during "in table body"
This makes it possible to load Google Image Search results. You can't see the images yet, but it's still something. :^)
This commit is contained in:
parent
7af337764e
commit
e5ddb76a67
1 changed files with 11 additions and 1 deletions
|
@ -1596,7 +1596,17 @@ void HTMLDocumentParser::handle_in_table_body(HTMLToken& token)
|
|||
}
|
||||
|
||||
if (token.is_start_tag() && token.tag_name().is_one_of("th", "td")) {
|
||||
TODO();
|
||||
PARSE_ERROR();
|
||||
clear_the_stack_back_to_a_table_body_context();
|
||||
|
||||
HTMLToken fake_tr_token;
|
||||
fake_tr_token.m_type = HTMLToken::Type::StartTag;
|
||||
fake_tr_token.m_tag.tag_name.append("tr");
|
||||
insert_html_element(fake_tr_token);
|
||||
|
||||
m_insertion_mode = InsertionMode::InRow;
|
||||
process_using_the_rules_for(m_insertion_mode, token);
|
||||
return;
|
||||
}
|
||||
|
||||
if (token.is_end_tag() && token.tag_name().is_one_of("tbody", "tfoot", "thead")) {
|
||||
|
|
Loading…
Add table
Reference in a new issue