mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-04-22 12:35:14 +00:00
LibWeb: Fix copy-paste error in HTMLDocumentParser (#2358)
When watching the video of the new HTML parser I noticed a small copy and paste error. In one of the cases in `handle_after_head` the code was checking for end tags when it should check for start tags. I haven't tested this change, just looking at the spec.
This commit is contained in:
parent
10bdb6f33b
commit
6561987e9f
Notes:
sideshowbarker
2024-07-19 06:11:10 +09:00
Author: https://github.com/Danten 🔰 Commit: https://github.com/SerenityOS/serenity/commit/6561987e9f6 Pull-request: https://github.com/SerenityOS/serenity/pull/2358
1 changed files with 1 additions and 1 deletions
|
@ -214,7 +214,7 @@ void HTMLDocumentParser::handle_after_head(HTMLToken& token)
|
|||
|
||||
{
|
||||
Vector<String> names = { "base", "basefont", "bgsound", "link", "meta", "noframes", "script", "style", "template", "title" };
|
||||
if (token.is_end_tag() && names.contains_slow(token.tag_name())) {
|
||||
if (token.is_start_tag() && names.contains_slow(token.tag_name())) {
|
||||
ASSERT_NOT_REACHED();
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue