1
0
Fork 0
mirror of https://github.com/LadybirdBrowser/ladybird.git synced 2025-06-11 02:13:56 +09:00

LibWeb: Implement HTMLSelectElement.add()

HTMLSelectElement simply defers to its HTMLOptionsCollection.
This commit is contained in:
Timothy Flynn 2022-03-21 20:03:37 -04:00 committed by Andreas Kling
parent ff9856a214
commit 27eb70cbba
Notes: sideshowbarker 2024-07-17 16:57:54 +09:00
3 changed files with 11 additions and 0 deletions

View file

@ -23,6 +23,8 @@ public:
RefPtr<HTMLOptionsCollection> const& options();
DOM::ExceptionOr<void> add(HTMLOptionOrOptGroupElement element, Optional<HTMLElementOrElementIndex> before = {});
int selected_index() const;
void set_selected_index(int);