diff options
author | Kyle McLean <kylem590@gmail.com> | 2020-06-03 22:37:45 -0600 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2020-06-04 09:09:33 +0200 |
commit | 4edd0643a6607deaa3b7a1123452108c8e89174b (patch) | |
tree | c5de2abbc2b4374736ad2973907850925f175b1d /Libraries/LibWeb | |
parent | 5e3972a9463c31214cecc5e30e4624ea51c276f1 (diff) | |
download | serenity-4edd0643a6607deaa3b7a1123452108c8e89174b.zip |
LibWeb: Handle NULL character during "in body"
Diffstat (limited to 'Libraries/LibWeb')
-rw-r--r-- | Libraries/LibWeb/Parser/HTMLDocumentParser.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
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(); |