mirror of
https://github.com/fergalmoran/ladybird.git
synced 2026-02-26 09:35:46 +00:00
LibWeb: Improve HTMLOptionElement spec compliance
Implement ask_for_a_reset() function
This commit is contained in:
committed by
Sam Atkins
parent
f4102b1dc9
commit
9d4f3c938f
@@ -137,7 +137,10 @@ int HTMLOptionElement::index() const
|
||||
// https://html.spec.whatwg.org/multipage/form-elements.html#ask-for-a-reset
|
||||
void HTMLOptionElement::ask_for_a_reset()
|
||||
{
|
||||
// FIXME: Implement this operation.
|
||||
// If an option element in the list of options asks for a reset, then run that select element's selectedness setting algorithm.
|
||||
if (is<HTMLSelectElement>(parent_element())) {
|
||||
static_cast<HTMLSelectElement*>(parent())->update_selectedness();
|
||||
}
|
||||
}
|
||||
|
||||
// https://html.spec.whatwg.org/multipage/form-elements.html#concept-option-disabled
|
||||
|
||||
Reference in New Issue
Block a user