1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-31 06:58:11 +00:00

LibWeb: Implement more of the foster parenting algorithm in the parser

This commit is contained in:
Andreas Kling 2020-06-21 17:00:55 +02:00
parent 213e2793bd
commit 966bc05fef
4 changed files with 58 additions and 12 deletions

View file

@ -110,7 +110,14 @@ private:
void generate_implied_end_tags(const FlyString& exception = {});
bool stack_of_open_elements_has_element_with_tag_name_in_scope(const FlyString& tag_name);
NonnullRefPtr<Element> create_element_for(HTMLToken&);
RefPtr<Node> find_appropriate_place_for_inserting_node();
struct AdjustedInsertionLocation {
RefPtr<Node> parent;
RefPtr<Node> insert_before_sibling;
};
AdjustedInsertionLocation find_appropriate_place_for_inserting_node();
Text* find_character_insertion_node();
void flush_character_insertions();
RefPtr<Element> insert_html_element(HTMLToken&);