LibWeb: Handle NULL character during "in body"

This commit is contained in:
Kyle McLean 2020-06-03 22:37:45 -06:00 committed by Andreas Kling
parent 5e3972a946
commit 4edd0643a6
Notes: sideshowbarker 2024-07-19 05:51:09 +09:00

View file

@ -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();