From a8d52a68f63a38fcaeb427a69ea63a99093d988b Mon Sep 17 00:00:00 2001 From: Andreas Kling Date: Sun, 30 Aug 2020 20:10:19 +0200 Subject: [PATCH] LibWeb: Take care of a FIXME in the "in table text" insertion mode --- Libraries/LibWeb/HTML/Parser/HTMLDocumentParser.cpp | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/Libraries/LibWeb/HTML/Parser/HTMLDocumentParser.cpp b/Libraries/LibWeb/HTML/Parser/HTMLDocumentParser.cpp index 62772ce7f8..2ef4fd3b21 100644 --- a/Libraries/LibWeb/HTML/Parser/HTMLDocumentParser.cpp +++ b/Libraries/LibWeb/HTML/Parser/HTMLDocumentParser.cpp @@ -2030,11 +2030,15 @@ void HTMLDocumentParser::handle_in_table_text(HTMLToken& token) for (auto& pending_token : m_pending_table_character_tokens) { ASSERT(pending_token.is_character()); if (!pending_token.is_parser_whitespace()) { - // FIXME: If any of the tokens in the pending table character tokens list + // If any of the tokens in the pending table character tokens list // are character tokens that are not ASCII whitespace, then this is a parse error: // reprocess the character tokens in the pending table character tokens list using // the rules given in the "anything else" entry in the "in table" insertion mode. - TODO(); + PARSE_ERROR(); + m_foster_parenting = true; + process_using_the_rules_for(InsertionMode::InBody, token); + m_foster_parenting = false; + return; } }