1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 04:07:44 +00:00

LibWeb: Improve support for "a" and "li" during "in body" insertion

We can now parse welcome.html once again, without resorting to hacks
or fallbacks during "in body" :^)
This commit is contained in:
Andreas Kling 2020-05-29 22:06:05 +02:00
parent 30d64fccde
commit 6854f726ce
4 changed files with 47 additions and 7 deletions

View file

@ -50,6 +50,7 @@ public:
bool has_in_scope(const FlyString& tag_name) const;
bool has_in_button_scope(const FlyString& tag_name) const;
bool has_in_table_scope(const FlyString& tag_name) const;
bool has_in_list_item_scope(const FlyString& tag_name) const;
bool has_in_scope(const Element&) const;
@ -59,6 +60,8 @@ public:
void pop_until_an_element_with_tag_name_has_been_popped(const FlyString&);
Element* topmost_special_node_below(const Element&);
private:
bool has_in_scope_impl(const FlyString& tag_name, const Vector<FlyString>&) const;
bool has_in_scope_impl(const Element& target_node, const Vector<FlyString>&) const;