1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-31 13:38:11 +00:00

LibWeb: Implement HTMLSelectElement length, item() and namedItem()

These are simple calls through to the HTMLOptionsCollection functions
the same names, as with HTMLSelectElement.add().
This commit is contained in:
Zaggy1024 2022-10-18 03:22:55 -05:00 committed by Andreas Kling
parent 2547e0b966
commit f0420def78
3 changed files with 27 additions and 0 deletions

View file

@ -10,6 +10,9 @@ interface HTMLSelectElement : HTMLElement {
[Reflect] attribute boolean required;
[SameObject] readonly attribute HTMLOptionsCollection options;
readonly attribute unsigned long length;
getter Element? item(unsigned long index);
getter Element? namedItem(DOMString name);
[CEReactions] undefined add((HTMLOptionElement or HTMLOptGroupElement) element, optional (HTMLElement or long)? before = null);
attribute long selectedIndex;