mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 13:28:11 +00:00
LibWeb: Match selected option elements with checked pseudo-class
This commit is contained in:
parent
df30fd6232
commit
aad4051885
1 changed files with 4 additions and 2 deletions
|
@ -89,8 +89,10 @@ static inline bool matches_checked_pseudo_class(DOM::Element const& element)
|
|||
}
|
||||
}
|
||||
|
||||
// FIXME: - option elements whose selectedness is true
|
||||
|
||||
// - option elements whose selectedness is true
|
||||
if (is<HTML::HTMLOptionElement>(element)) {
|
||||
return static_cast<HTML::HTMLOptionElement const&>(element).selected();
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue