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
commit 27eb70cbba
Notes: sideshowbarker 2024-07-17 16:57:54 +09:00
3 changed files with 11 additions and 0 deletions

View file

@ -8,6 +8,8 @@ interface HTMLSelectElement : HTMLElement {
[Reflect] attribute boolean required;
[SameObject] readonly attribute HTMLOptionsCollection options;
[CEReactions] undefined add((HTMLOptionElement or HTMLOptGroupElement) element, optional (HTMLElement or long)? before = null);
attribute long selectedIndex;
};