mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-11-26 01:20:25 +00:00
LibWeb: Fix 'Comment end state' in HTML Tokenizer
Also, update the expected hash in the LibWeb TestHTMLTokenizer regression test. This is due to the "This comment has a few too many dashes." comment token being updated.
This commit is contained in:
parent
d73bb2633c
commit
b6eaefa87d
Notes:
sideshowbarker
2024-07-17 18:27:12 +09:00
Author: https://github.com/ant1441 Commit: https://github.com/SerenityOS/serenity/commit/b6eaefa87d Pull-request: https://github.com/SerenityOS/serenity/pull/12639
2 changed files with 2 additions and 2 deletions
|
@ -206,5 +206,5 @@ TEST_CASE(regression)
|
|||
auto file_contents = file.value()->read_all();
|
||||
auto tokens = run_tokenizer(file_contents);
|
||||
u32 hash = hash_tokens(tokens);
|
||||
EXPECT_EQ(hash, 3215459107u);
|
||||
EXPECT_EQ(hash, 710375345u);
|
||||
}
|
||||
|
|
|
@ -1483,7 +1483,7 @@ _StartOfFunction:
|
|||
}
|
||||
ANYTHING_ELSE
|
||||
{
|
||||
m_current_builder.append('-');
|
||||
m_current_builder.append("--");
|
||||
RECONSUME_IN(Comment);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue