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