mirror of
https://github.com/RGBCube/serenity
synced 2025-05-16 07:04:58 +00:00
LibWeb: Support parsing "select" elements (outside of tables)
This commit is contained in:
parent
60352c7b9b
commit
ca6fbefbc9
4 changed files with 173 additions and 2 deletions
|
@ -94,6 +94,14 @@ bool StackOfOpenElements::has_in_list_item_scope(const FlyString& tag_name) cons
|
|||
return has_in_scope_impl(tag_name, list);
|
||||
}
|
||||
|
||||
bool StackOfOpenElements::has_in_select_scope(const FlyString& tag_name) const
|
||||
{
|
||||
auto list = s_base_list;
|
||||
list.append("option");
|
||||
list.append("optgroup");
|
||||
return has_in_scope_impl(tag_name, list);
|
||||
}
|
||||
|
||||
bool StackOfOpenElements::contains(const Element& element) const
|
||||
{
|
||||
for (auto& element_on_stack : m_elements) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue