2022-02-15 22:40:51 +03:30
|
|
|
#import <HTML/HTMLElement.idl>
|
|
|
|
|
2022-10-07 16:45:09 -06:00
|
|
|
// https://html.spec.whatwg.org/multipage/form-elements.html#htmloptionelement
|
2023-10-25 17:26:24 +02:00
|
|
|
[Exposed=Window, LegacyFactoryFunction=Option(optional DOMString text = "", optional DOMString value, optional boolean defaultSelected = false, optional boolean selected = false)]
|
2020-08-01 03:05:43 +01:00
|
|
|
interface HTMLOptionElement : HTMLElement {
|
2023-03-23 03:48:52 -04:00
|
|
|
[HTMLConstructor] constructor();
|
|
|
|
|
2023-03-01 01:45:18 +00:00
|
|
|
[CEReactions, Reflect] attribute boolean disabled;
|
2024-05-15 22:54:17 +01:00
|
|
|
readonly attribute HTMLFormElement? form;
|
2024-11-15 11:14:28 +01:00
|
|
|
[CEReactions] attribute DOMString label;
|
2023-03-01 01:45:18 +00:00
|
|
|
[CEReactions, Reflect=selected] attribute boolean defaultSelected;
|
2022-03-20 16:13:58 +01:00
|
|
|
attribute boolean selected;
|
2025-07-26 12:19:56 -04:00
|
|
|
[CEReactions] attribute Utf16DOMString value;
|
2022-04-12 13:29:16 -03:00
|
|
|
|
2025-07-28 09:46:06 -04:00
|
|
|
[CEReactions] attribute Utf16DOMString text;
|
2022-04-12 13:29:16 -03:00
|
|
|
readonly attribute long index;
|
2020-12-09 21:26:42 +00:00
|
|
|
};
|