HTMLButtonElement.idl 1.4 KB

123456789101112131415161718192021222324252627282930313233343536
  1. #import <HTML/HTMLElement.idl>
  2. #import <HTML/HTMLFormElement.idl>
  3. [MissingValueDefault=submit, InvalidValueDefault=submit]
  4. enum ButtonTypeState {
  5. "submit",
  6. "reset",
  7. "button"
  8. };
  9. // https://html.spec.whatwg.org/multipage/semantics.html#htmlbuttonelement
  10. [Exposed=Window]
  11. interface HTMLButtonElement : HTMLElement {
  12. [HTMLConstructor] constructor();
  13. [CEReactions, Reflect] attribute boolean disabled;
  14. readonly attribute HTMLFormElement? form;
  15. [CEReactions, Reflect=formaction] attribute USVString formAction;
  16. [CEReactions, Reflect=formenctype] attribute DOMString formEnctype;
  17. [CEReactions, Reflect=formmethod] attribute DOMString formMethod;
  18. [CEReactions, Reflect=formnovalidate] attribute boolean formNoValidate;
  19. [CEReactions, Reflect=formtarget] attribute DOMString formTarget;
  20. [CEReactions, Reflect] attribute DOMString name;
  21. [CEReactions, Reflect, Enumerated=ButtonTypeState] attribute DOMString type;
  22. [CEReactions, Reflect] attribute DOMString value;
  23. // FIXME: readonly attribute boolean willValidate;
  24. // FIXME: readonly attribute ValidityState validity;
  25. // FIXME: readonly attribute DOMString validationMessage;
  26. // FIXME: boolean checkValidity();
  27. // FIXME: boolean reportValidity();
  28. // FIXME: undefined setCustomValidity(DOMString error);
  29. // FIXME: readonly attribute NodeList labels;
  30. };
  31. // FIXME: HTMLButtonElement includes PopoverInvokerElement;