mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-07-03 23:52:08 +00:00
LibWeb: Support parsing "select" elements (outside of tables)
This commit is contained in:
parent
60352c7b9b
commit
ca6fbefbc9
Notes:
sideshowbarker
2024-07-19 05:56:12 +09:00
Author: https://github.com/awesomekling
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