1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-16 05:55:00 +00:00

LibWeb: Parse "form" tags during the "in body" insertion mode

This commit is contained in:
Andreas Kling 2020-05-30 11:13:57 +02:00
parent 851a0f983a
commit fbd52047bb
3 changed files with 36 additions and 2 deletions

View file

@ -103,6 +103,15 @@ bool StackOfOpenElements::contains(const Element& element) const
return false;
}
bool StackOfOpenElements::contains(const FlyString& tag_name) const
{
for (auto& element_on_stack : m_elements) {
if (element_on_stack.tag_name() == tag_name)
return true;
}
return false;
}
void StackOfOpenElements::pop_until_an_element_with_tag_name_has_been_popped(const FlyString& tag_name)
{
while (m_elements.last().tag_name() != tag_name)