mirror of
https://github.com/LadybirdBrowser/ladybird
synced 2026-05-02 04:27:12 +02:00
LibWeb: Start implementing character token parsing
Now that we've gotten rid of the misguided character buffering in the tokenizer, it actually spits out character tokens that we have to deal with in the parser. This patch implements enough to bring us back to speed with simple.html
This commit is contained in:
Notes:
sideshowbarker
2024-07-19 06:10:26 +09:00
Author: https://github.com/awesomekling Commit: https://github.com/SerenityOS/serenity/commit/31db3f21ae9
@@ -95,10 +95,16 @@ private:
|
||||
RefPtr<Node> find_appropriate_place_for_inserting_node();
|
||||
RefPtr<Element> insert_html_element(HTMLToken&);
|
||||
Element& current_node();
|
||||
void insert_character(u32 data);
|
||||
void reconstruct_the_active_formatting_elements();
|
||||
void process_using_the_rules_for(InsertionMode, HTMLToken&);
|
||||
|
||||
InsertionMode m_insertion_mode { InsertionMode::Initial };
|
||||
|
||||
StackOfOpenElements m_stack_of_open_elements;
|
||||
|
||||
NonnullRefPtrVector<Element> m_list_of_active_formatting_elements;
|
||||
|
||||
HTMLTokenizer m_tokenizer;
|
||||
|
||||
bool m_foster_parenting { false };
|
||||
|
||||
Reference in New Issue
Block a user