1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-23 08:17:34 +00:00

LibWeb: Match selected option elements with checked pseudo-class

This commit is contained in:
Srikavin Ramkumar 2023-03-20 04:33:22 -04:00 committed by Sam Atkins
parent df30fd6232
commit aad4051885

View file

@ -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; return false;
} }