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