mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-05-07 03:32:53 +00:00
LibWeb: Fully implement all DOCTYPE tokenizer states
Also fixes TagOpen having a seperate emit and reconsume in ANYTHING_ELSE.
This commit is contained in:
parent
ab1df177d8
commit
821312729a
Notes:
sideshowbarker
2024-07-19 05:39:25 +09:00
Author: https://github.com/Lubrsi
Commit: 821312729a
Pull-request: https://github.com/SerenityOS/serenity/pull/2556
2 changed files with 178 additions and 47 deletions
|
@ -170,6 +170,7 @@ void HTMLDocumentParser::handle_initial(HTMLToken& token)
|
|||
auto doctype = adopt(*new DocumentType(document()));
|
||||
doctype->set_name(token.m_doctype.name.to_string());
|
||||
document().append_child(move(doctype));
|
||||
document().set_quirks_mode(token.m_doctype.force_quirks);
|
||||
m_insertion_mode = InsertionMode::BeforeHTML;
|
||||
return;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue