mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-06-16 23:31:55 +00:00
LibWeb: Ensure selected options collection is created prior to access
This commit is contained in:
parent
dccb374876
commit
8b2de413ae
Notes:
github-actions[bot]
2025-02-08 12:33:22 +00:00
Author: https://github.com/tcl3
Commit: 8b2de413ae
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/3477
4 changed files with 111 additions and 1 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue