LibWeb: Use HTMLOptionElement in select item getter

fix item
This commit is contained in:
Bastiaan van der Plaat
2024-04-08 22:01:21 +02:00
committed by Andreas Kling
parent 6f84f69677
commit 8342525434
Notes: sideshowbarker 2024-07-17 00:37:23 +09:00
3 changed files with 8 additions and 10 deletions

View File

@@ -19,10 +19,8 @@ interface HTMLSelectElement : HTMLElement {
[SameObject] readonly attribute HTMLOptionsCollection options;
[CEReactions] attribute unsigned long length;
// FIXME: Element is really HTMLOptionElement
getter Element? item(unsigned long index);
// FIXME: Element is really HTMLOptionElement
Element? namedItem(DOMString name);
getter HTMLOptionElement? item(unsigned long index);
HTMLOptionElement? namedItem(DOMString name);
[CEReactions] undefined add((HTMLOptionElement or HTMLOptGroupElement) element, optional (HTMLElement or long)? before = null);
[CEReactions] undefined remove(); // ChildNode overload
[CEReactions] undefined remove(long index);