diff --git a/Userland/Libraries/LibWeb/HTML/HTMLOptionElement.cpp b/Userland/Libraries/LibWeb/HTML/HTMLOptionElement.cpp index fc74b0b4383..c2879e4c541 100644 --- a/Userland/Libraries/LibWeb/HTML/HTMLOptionElement.cpp +++ b/Userland/Libraries/LibWeb/HTML/HTMLOptionElement.cpp @@ -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(parent_element())) { + static_cast(parent())->update_selectedness(); + } } // https://html.spec.whatwg.org/multipage/form-elements.html#concept-option-disabled