2022-02-15 16:10:51 -03:00
|
|
|
#import <HTML/HTMLElement.idl>
|
2023-11-08 15:04:56 -03:00
|
|
|
#import <HTML/HTMLFormElement.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
|
2023-09-02 11:00:01 -03:00
|
|
|
[Exposed=Window]
|
2020-07-31 23:07:00 -03:00
|
|
|
interface HTMLSelectElement : HTMLElement {
|
2023-03-23 04:48:52 -03:00
|
|
|
[HTMLConstructor] constructor();
|
|
|
|
|
|
2024-08-13 10:38:35 -03:00
|
|
|
[CEReactions, Enumerated=Autocomplete, Reflect] attribute DOMString autocomplete;
|
2023-02-28 22:45:18 -03:00
|
|
|
[CEReactions, Reflect] attribute boolean disabled;
|
2023-10-04 12:55:33 -03:00
|
|
|
readonly attribute HTMLFormElement? form;
|
2023-02-28 22:45:18 -03:00
|
|
|
[CEReactions, Reflect] attribute boolean multiple;
|
2023-10-04 12:55:33 -03:00
|
|
|
[CEReactions, Reflect] attribute DOMString name;
|
2023-02-28 22:45:18 -03:00
|
|
|
[CEReactions, Reflect] attribute boolean required;
|
2024-04-08 16:34:19 -03:00
|
|
|
[CEReactions] attribute unsigned long size;
|
2020-07-31 23:07:00 -03:00
|
|
|
|
2022-11-05 01:51:42 -03:00
|
|
|
readonly attribute DOMString type;
|
|
|
|
|
|
2023-10-04 12:55:33 -03:00
|
|
|
[SameObject] readonly attribute HTMLOptionsCollection options;
|
2024-04-08 16:50:35 -03:00
|
|
|
[CEReactions] attribute unsigned long length;
|
2024-04-08 17:01:21 -03:00
|
|
|
getter HTMLOptionElement? item(unsigned long index);
|
|
|
|
|
HTMLOptionElement? namedItem(DOMString name);
|
2022-03-21 21:03:37 -03:00
|
|
|
[CEReactions] undefined add((HTMLOptionElement or HTMLOptGroupElement) element, optional (HTMLElement or long)? before = null);
|
2024-04-08 16:56:33 -03:00
|
|
|
[CEReactions] undefined remove(); // ChildNode overload
|
|
|
|
|
[CEReactions] undefined remove(long index);
|
2024-05-19 07:15:54 -03:00
|
|
|
[FIXME, CEReactions] setter undefined (unsigned long index, HTMLOptionElement? option);
|
2022-03-21 21:03:37 -03:00
|
|
|
|
2024-04-08 16:58:39 -03:00
|
|
|
[SameObject] readonly attribute HTMLCollection selectedOptions;
|
2022-03-20 12:13:23 -03:00
|
|
|
attribute long selectedIndex;
|
2023-12-07 11:53:49 -03:00
|
|
|
attribute DOMString value;
|
2023-10-04 12:55:33 -03:00
|
|
|
|
2024-05-19 07:15:54 -03:00
|
|
|
[FIXME] readonly attribute boolean willValidate;
|
|
|
|
|
[FIXME] readonly attribute ValidityState validity;
|
|
|
|
|
[FIXME] readonly attribute DOMString validationMessage;
|
|
|
|
|
[FIXME] boolean checkValidity();
|
|
|
|
|
[FIXME] boolean reportValidity();
|
|
|
|
|
[FIXME] undefined setCustomValidity(DOMString error);
|
2022-03-20 12:13:23 -03:00
|
|
|
|
2024-06-13 13:11:45 -03:00
|
|
|
undefined showPicker();
|
|
|
|
|
|
2024-05-18 10:10:00 -03:00
|
|
|
readonly attribute NodeList labels;
|
2020-12-09 18:26:42 -03:00
|
|
|
};
|