HTMLFormElement.idl 1.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. #import <DOM/HTMLFormControlsCollection.idl>
  2. #import <HTML/HTMLElement.idl>
  3. // https://html.spec.whatwg.org/multipage/form-control-infrastructure.html#attr-fs-enctype
  4. [MissingValueDefault=application/x-www-form-urlencoded, InvalidValueDefault=application/x-www-form-urlencoded]
  5. enum EnctypeAttribute {
  6. "application/x-www-form-urlencoded",
  7. "multipart/form-data",
  8. "text/plain"
  9. };
  10. // https://html.spec.whatwg.org/multipage/semantics.html#htmlformelement
  11. [Exposed=Window, LegacyOverrideBuiltIns, LegacyUnenumerableNamedProperties]
  12. interface HTMLFormElement : HTMLElement {
  13. [HTMLConstructor] constructor();
  14. [CEReactions, Reflect=accept-charset] attribute DOMString acceptCharset;
  15. [CEReactions] attribute USVString action;
  16. [FIXME, CEReactions] attribute DOMString autocomplete;
  17. [CEReactions, Enumerated=EnctypeAttribute, Reflect] attribute DOMString enctype;
  18. [FIXME, CEReactions] attribute DOMString encoding;
  19. [CEReactions] attribute DOMString method;
  20. [CEReactions, Reflect] attribute DOMString name;
  21. [CEReactions, Reflect=novalidate] attribute boolean noValidate;
  22. [CEReactions, Reflect] attribute DOMString target;
  23. [CEReactions, Reflect] attribute DOMString rel;
  24. [SameObject, PutForwards=value] readonly attribute DOMTokenList relList;
  25. [SameObject] readonly attribute HTMLFormControlsCollection elements;
  26. readonly attribute unsigned long length;
  27. getter Element (unsigned long index);
  28. getter (RadioNodeList or Element) (DOMString name);
  29. undefined submit();
  30. undefined requestSubmit(optional HTMLElement? submitter = null);
  31. [CEReactions] undefined reset();
  32. boolean checkValidity();
  33. boolean reportValidity();
  34. };