HTMLButtonElement.idl 1.5 KB

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