HTMLInputElement.idl 3.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273
  1. #import <HTML/HTMLElement.idl>
  2. #import <HTML/HTMLFormElement.idl>
  3. #import <FileAPI/FileList.idl>
  4. // https://html.spec.whatwg.org/multipage/input.html#htmlinputelement
  5. [Exposed=Window]
  6. interface HTMLInputElement : HTMLElement {
  7. [HTMLConstructor] constructor();
  8. [CEReactions, Reflect] attribute DOMString accept;
  9. [CEReactions, Reflect] attribute DOMString alt;
  10. // FIXME: [CEReactions] attribute DOMString autocomplete;
  11. [CEReactions, Reflect=checked] attribute boolean defaultChecked;
  12. [ImplementedAs=checked_binding] attribute boolean checked;
  13. [CEReactions, Reflect=dirname] attribute DOMString dirName;
  14. [CEReactions, Reflect] attribute boolean disabled;
  15. readonly attribute HTMLFormElement? form;
  16. attribute FileList? files;
  17. // FIXME: [CEReactions] attribute USVString formAction;
  18. // FIXME: [CEReactions] attribute DOMString formEnctype;
  19. // FIXME: [CEReactions] attribute DOMString formMethod;
  20. [CEReactions, Reflect=formnovalidate] attribute boolean formNoValidate;
  21. [CEReactions, Reflect=formtarget] attribute DOMString formTarget;
  22. // FIXME: [CEReactions] attribute unsigned long height;
  23. attribute boolean indeterminate;
  24. // FIXME: readonly attribute HTMLDataListElement? list;
  25. [CEReactions, Reflect] attribute DOMString max;
  26. [CEReactions] attribute long maxLength;
  27. [CEReactions, Reflect] attribute DOMString min;
  28. [CEReactions] attribute long minLength;
  29. [CEReactions, Reflect] attribute boolean multiple;
  30. [CEReactions, Reflect] attribute DOMString name;
  31. // FIXME: [CEReactions] attribute DOMString pattern;
  32. [CEReactions, Reflect] attribute DOMString placeholder;
  33. [CEReactions, Reflect=readonly] attribute boolean readOnly;
  34. [CEReactions, Reflect] attribute boolean required;
  35. [CEReactions] attribute unsigned long size;
  36. [CEReactions, Reflect] attribute DOMString src;
  37. [CEReactions, Reflect] attribute DOMString step;
  38. [CEReactions] attribute DOMString type;
  39. [CEReactions, Reflect=value] attribute DOMString defaultValue;
  40. [CEReactions, LegacyNullToEmptyString] attribute DOMString value;
  41. attribute object? valueAsDate;
  42. attribute unrestricted double valueAsNumber;
  43. // FIXME: [CEReactions] attribute unsigned long width;
  44. undefined stepUp(optional long n = 1);
  45. undefined stepDown(optional long n = 1);
  46. // FIXME: readonly attribute boolean willValidate;
  47. // FIXME: readonly attribute ValidityState validity;
  48. // FIXME: readonly attribute DOMString validationMessage;
  49. boolean checkValidity();
  50. boolean reportValidity();
  51. undefined setCustomValidity(DOMString error);
  52. // FIXME: readonly attribute NodeList? labels;
  53. undefined select();
  54. // FIXME: attribute unsigned long? selectionStart;
  55. // FIXME: attribute unsigned long? selectionEnd;
  56. // FIXME: attribute DOMString? selectionDirection;
  57. // FIXME: undefined setRangeText(DOMString replacement);
  58. // FIXME: undefined setRangeText(DOMString replacement, unsigned long start, unsigned long end, optional SelectionMode selectionMode = "preserve");
  59. undefined setSelectionRange(unsigned long start, unsigned long end, optional DOMString direction);
  60. undefined showPicker();
  61. // Obsolete
  62. [CEReactions, Reflect] attribute DOMString align;
  63. [CEReactions, Reflect=usemap] attribute DOMString useMap;
  64. };
  65. // FIXME: HTMLInputElement includes PopoverInvokerElement;