HTMLInputElement.idl 3.4 KB

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