2022-02-15 16:10:51 -03:00
|
|
|
#import <HTML/HTMLElement.idl>
|
2022-03-16 09:08:12 -03:00
|
|
|
#import <HTML/HTMLOptionsCollection.idl>
|
2022-02-15 16:10:51 -03:00
|
|
|
|
2022-10-07 19:45:09 -03:00
|
|
|
// https://html.spec.whatwg.org/multipage/form-elements.html#htmlselectelement
|
|
|
|
|
[Exposed=Window]
|
2020-07-31 23:07:00 -03:00
|
|
|
interface HTMLSelectElement : HTMLElement {
|
|
|
|
|
|
2023-03-23 04:48:52 -03:00
|
|
|
[HTMLConstructor] constructor();
|
|
|
|
|
|
2023-02-28 22:45:18 -03:00
|
|
|
[CEReactions, Reflect] attribute boolean disabled;
|
|
|
|
|
[CEReactions, Reflect] attribute boolean multiple;
|
|
|
|
|
[CEReactions, Reflect] attribute boolean required;
|
2022-03-16 09:08:12 -03:00
|
|
|
[SameObject] readonly attribute HTMLOptionsCollection options;
|
2020-07-31 23:07:00 -03:00
|
|
|
|
2022-11-05 01:51:42 -03:00
|
|
|
readonly attribute DOMString type;
|
|
|
|
|
|
2022-10-18 05:22:55 -03:00
|
|
|
readonly attribute unsigned long length;
|
|
|
|
|
getter Element? item(unsigned long index);
|
|
|
|
|
getter Element? namedItem(DOMString name);
|
2022-03-21 21:03:37 -03:00
|
|
|
[CEReactions] undefined add((HTMLOptionElement or HTMLOptGroupElement) element, optional (HTMLElement or long)? before = null);
|
|
|
|
|
|
2022-03-20 12:13:23 -03:00
|
|
|
attribute long selectedIndex;
|
|
|
|
|
|
2020-12-09 18:26:42 -03:00
|
|
|
};
|