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();
|
|
|
|
|
|
2025-02-09 11:56:54 -03:00
|
|
|
[CEReactions] 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;
|
2025-07-26 13:19:56 -03:00
|
|
|
attribute Utf16DOMString value;
|
2023-10-04 12:55:33 -03:00
|
|
|
|
2025-02-25 05:43:11 -03:00
|
|
|
readonly attribute boolean willValidate;
|
2025-02-17 16:44:26 -03:00
|
|
|
readonly attribute ValidityState validity;
|
2025-08-29 13:02:59 -03:00
|
|
|
readonly attribute Utf16DOMString validationMessage;
|
2025-02-26 03:44:39 -03:00
|
|
|
boolean checkValidity();
|
2025-05-03 14:52:01 -03:00
|
|
|
boolean reportValidity();
|
2025-02-17 16:50:56 -03:00
|
|
|
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
|
|
|
};
|