HTMLFormElement.idl 1.3 KB

123456789101112131415161718192021222324252627282930313233
  1. #import <DOM/HTMLFormControlsCollection.idl>
  2. #import <HTML/HTMLElement.idl>
  3. // https://html.spec.whatwg.org/multipage/semantics.html#htmlformelement
  4. [Exposed=Window]
  5. interface HTMLFormElement : HTMLElement {
  6. [HTMLConstructor] constructor();
  7. [CEReactions, Reflect=accept-charset] attribute DOMString acceptCharset;
  8. [CEReactions] attribute USVString action;
  9. // FIXME: [CEReactions] attribute DOMString autocomplete;
  10. // FIXME: [CEReactions] attribute DOMString enctype;
  11. // FIXME: [CEReactions] attribute DOMString encoding;
  12. [CEReactions] attribute DOMString method;
  13. [CEReactions, Reflect] attribute DOMString name;
  14. [CEReactions, Reflect=novalidate] attribute boolean noValidate;
  15. [CEReactions, Reflect] attribute DOMString target;
  16. [CEReactions, Reflect] attribute DOMString rel;
  17. // FIXME: [SameObject, PutForwards=value] readonly attribute DOMTokenList relList;
  18. [SameObject] readonly attribute HTMLFormControlsCollection elements;
  19. readonly attribute unsigned long length;
  20. // FIXME: getter Element (unsigned long index);
  21. // FIXME: getter (RadioNodeList or Element) (DOMString name);
  22. undefined submit();
  23. // FIXME: undefined requestSubmit(optional HTMLElement? submitter = null);
  24. [CEReactions] undefined reset();
  25. boolean checkValidity();
  26. boolean reportValidity();
  27. };