diff --git a/Libraries/LibWeb/HTML/HTMLSelectElement.cpp b/Libraries/LibWeb/HTML/HTMLSelectElement.cpp index d4854f24030..8c7503cc876 100644 --- a/Libraries/LibWeb/HTML/HTMLSelectElement.cpp +++ b/Libraries/LibWeb/HTML/HTMLSelectElement.cpp @@ -377,7 +377,7 @@ String HTMLSelectElement::value() const WebIDL::ExceptionOr HTMLSelectElement::set_value(String const& value) { update_cached_list_of_options(); - for (auto const& option_element : m_cached_list_of_options) + for (auto const& option_element : list_of_options()) option_element->set_selected(option_element->value() == value); update_inner_text_element(); return {};