1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-30 22:48:11 +00:00

LibWeb: Finally parse enough that we can actually handle welcome.html!

We made it, at last! What a long journey this was. :^)
This commit is contained in:
Andreas Kling 2020-05-24 22:39:59 +02:00
parent 65d8d5e83e
commit 4cbe202d2c
3 changed files with 68 additions and 1 deletions

View file

@ -33,4 +33,13 @@ bool StackOfOpenElements::has_in_button_scope(const FlyString& tag_name) const
return has_in_scope_impl(tag_name, list);
}
bool StackOfOpenElements::contains(const Element& element) const
{
for (auto& element_on_stack : m_elements) {
if (&element == &element_on_stack)
return true;
}
return false;
}
}