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:
parent
213e2793bd
commit
966bc05fef
4 changed files with 58 additions and 12 deletions
|
@ -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&);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue