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
Notes: github-actions[bot] 2025-02-08 12:33:22 +00:00
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);