mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-01 05:39:11 +00:00
LibWeb: Handle NULL character during "in body"
This commit is contained in:
parent
5e3972a946
commit
4edd0643a6
Notes:
sideshowbarker
2024-07-19 05:51:09 +09:00
Author: https://github.com/kylemclean
Commit: 4edd0643a6
Pull-request: https://github.com/SerenityOS/serenity/pull/2491
1 changed files with 2 additions and 1 deletions
|
@ -809,7 +809,8 @@ void HTMLDocumentParser::handle_in_body(HTMLToken& token)
|
||||||
{
|
{
|
||||||
if (token.is_character()) {
|
if (token.is_character()) {
|
||||||
if (token.codepoint() == 0) {
|
if (token.codepoint() == 0) {
|
||||||
TODO();
|
PARSE_ERROR();
|
||||||
|
return;
|
||||||
}
|
}
|
||||||
if (token.is_parser_whitespace()) {
|
if (token.is_parser_whitespace()) {
|
||||||
reconstruct_the_active_formatting_elements();
|
reconstruct_the_active_formatting_elements();
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue