2022-03-16 12:58:28 +01:00
|
|
|
#import <DOM/HTMLCollection.idl>
|
|
|
|
#import <HTML/HTMLOptionElement.idl>
|
|
|
|
#import <HTML/HTMLOptGroupElement.idl>
|
|
|
|
|
2023-11-07 19:29:22 -07:00
|
|
|
// https://html.spec.whatwg.org/#htmloptionscollection
|
2022-03-16 12:58:28 +01:00
|
|
|
[Exposed=Window]
|
|
|
|
interface HTMLOptionsCollection : HTMLCollection {
|
2024-04-08 21:50:35 +02:00
|
|
|
[CEReactions] attribute unsigned long length; // shadows inherited length
|
2022-03-16 12:58:28 +01:00
|
|
|
// [CEReactions] setter undefined (unsigned long index, HTMLOptionElement? option);
|
2022-03-21 20:02:40 -04:00
|
|
|
[CEReactions] undefined add((HTMLOptionElement or HTMLOptGroupElement) element, optional (HTMLElement or long)? before = null);
|
2024-04-08 21:56:33 +02:00
|
|
|
[CEReactions] undefined remove(long index);
|
2024-04-08 21:53:22 +02:00
|
|
|
attribute long selectedIndex;
|
2022-03-16 12:58:28 +01:00
|
|
|
};
|