mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-01-23 09:46:04 -05:00
a276cf2d5e
The popoverTargetElement seems to be one of the only cases of a reflected Element? attribute in the HTML spec, the behaviour of which is specified in section 2.6.1. Buttons can't actually toggle popovers yet because showing/hiding popovers is not implemented yet.
37 lines
1.5 KiB
Text
37 lines
1.5 KiB
Text
#import <HTML/HTMLElement.idl>
|
|
#import <HTML/HTMLFormElement.idl>
|
|
#import <HTML/PopoverInvokerElement.idl>
|
|
|
|
[MissingValueDefault=submit, InvalidValueDefault=submit]
|
|
enum ButtonTypeState {
|
|
"submit",
|
|
"reset",
|
|
"button"
|
|
};
|
|
|
|
// https://html.spec.whatwg.org/multipage/semantics.html#htmlbuttonelement
|
|
[Exposed=Window]
|
|
interface HTMLButtonElement : HTMLElement {
|
|
[HTMLConstructor] constructor();
|
|
|
|
[CEReactions, Reflect] attribute boolean disabled;
|
|
readonly attribute HTMLFormElement? form;
|
|
[CEReactions] attribute USVString formAction;
|
|
[CEReactions, Reflect=formenctype, Enumerated=FormEnctypeAttribute] attribute DOMString formEnctype;
|
|
[CEReactions, Reflect=formmethod, Enumerated=FormMethodAttribute] attribute DOMString formMethod;
|
|
[CEReactions, Reflect=formnovalidate] attribute boolean formNoValidate;
|
|
[CEReactions, Reflect=formtarget] attribute DOMString formTarget;
|
|
[CEReactions, Reflect] attribute DOMString name;
|
|
[CEReactions, Reflect, Enumerated=ButtonTypeState] attribute DOMString type;
|
|
[CEReactions, Reflect] attribute DOMString value;
|
|
|
|
[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);
|
|
|
|
readonly attribute NodeList labels;
|
|
};
|
|
HTMLButtonElement includes PopoverInvokerElement;
|