LibWeb: Ensure selected options collection is created prior to access

This commit is contained in:
Tim Ledbetter
2025-02-06 11:14:55 +00:00
committed by Tim Flynn
parent dccb374876
commit 8b2de413ae
4 changed files with 111 additions and 1 deletions

View File

@@ -43,6 +43,7 @@ public:
void remove(WebIDL::Long);
GC::Ref<DOM::HTMLCollection> selected_options();
GC::Ref<DOM::HTMLCollection> selected_options() const { return const_cast<HTMLSelectElement*>(this)->selected_options(); }
WebIDL::Long selected_index() const;
void set_selected_index(WebIDL::Long);