From 4edd0643a6607deaa3b7a1123452108c8e89174b Mon Sep 17 00:00:00 2001 From: Kyle McLean Date: Wed, 3 Jun 2020 22:37:45 -0600 Subject: [PATCH] LibWeb: Handle NULL character during "in body" --- Libraries/LibWeb/Parser/HTMLDocumentParser.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Libraries/LibWeb/Parser/HTMLDocumentParser.cpp b/Libraries/LibWeb/Parser/HTMLDocumentParser.cpp index 8d8732e96b..60d290f08f 100644 --- a/Libraries/LibWeb/Parser/HTMLDocumentParser.cpp +++ b/Libraries/LibWeb/Parser/HTMLDocumentParser.cpp @@ -809,7 +809,8 @@ void HTMLDocumentParser::handle_in_body(HTMLToken& token) { if (token.is_character()) { if (token.codepoint() == 0) { - TODO(); + PARSE_ERROR(); + return; } if (token.is_parser_whitespace()) { reconstruct_the_active_formatting_elements();