2022-02-15 22:40:51 +03:30
|
|
|
#import <HTML/HTMLElement.idl>
|
2023-10-04 17:55:33 +02:00
|
|
|
#import <HTML/HTMLFormElement.idl>
|
2022-02-15 22:40:51 +03:30
|
|
|
|
2023-11-05 01:48:01 +01:00
|
|
|
[MissingValueDefault=submit, InvalidValueDefault=submit]
|
|
|
|
enum ButtonTypeState {
|
|
|
|
"submit",
|
|
|
|
"reset",
|
|
|
|
"button"
|
|
|
|
};
|
|
|
|
|
2022-10-07 16:45:09 -06:00
|
|
|
// https://html.spec.whatwg.org/multipage/semantics.html#htmlbuttonelement
|
2023-09-03 15:29:34 +12:00
|
|
|
[Exposed=Window]
|
2020-08-01 03:04:26 +01:00
|
|
|
interface HTMLButtonElement : HTMLElement {
|
2023-03-23 03:48:52 -04:00
|
|
|
[HTMLConstructor] constructor();
|
|
|
|
|
2023-06-18 15:10:11 +01:00
|
|
|
[CEReactions, Reflect] attribute boolean disabled;
|
2023-10-04 17:55:33 +02:00
|
|
|
readonly attribute HTMLFormElement? form;
|
2024-09-07 23:17:56 +01:00
|
|
|
[CEReactions] attribute USVString formAction;
|
2024-10-20 18:26:45 +02:00
|
|
|
[CEReactions, Reflect=formenctype, Enumerated=FormEnctypeAttribute] attribute DOMString formEnctype;
|
|
|
|
[CEReactions, Reflect=formmethod, Enumerated=FormMethodAttribute] attribute DOMString formMethod;
|
2023-03-01 01:45:18 +00:00
|
|
|
[CEReactions, Reflect=formnovalidate] attribute boolean formNoValidate;
|
|
|
|
[CEReactions, Reflect=formtarget] attribute DOMString formTarget;
|
|
|
|
[CEReactions, Reflect] attribute DOMString name;
|
2023-11-05 01:48:01 +01:00
|
|
|
[CEReactions, Reflect, Enumerated=ButtonTypeState] attribute DOMString type;
|
2023-03-01 01:45:18 +00:00
|
|
|
[CEReactions, Reflect] attribute DOMString value;
|
2020-08-01 03:04:26 +01:00
|
|
|
|
2024-05-19 22:15:54 +12: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);
|
2023-10-04 17:55:33 +02:00
|
|
|
|
2024-05-18 14:10:00 +01:00
|
|
|
readonly attribute NodeList labels;
|
2020-12-09 21:26:42 +00:00
|
|
|
};
|
2023-10-04 17:55:33 +02:00
|
|
|
// FIXME: HTMLButtonElement includes PopoverInvokerElement;
|