HTMLInputElement.idl 2.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  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. readonly attribute HTMLFormElement? form;
  9. attribute FileList? files;
  10. [CEReactions, Reflect] attribute DOMString accept;
  11. [CEReactions, Reflect] attribute DOMString alt;
  12. [CEReactions, Reflect] attribute DOMString max;
  13. [CEReactions, Reflect] attribute DOMString min;
  14. [CEReactions, Reflect] attribute DOMString pattern;
  15. [CEReactions, Reflect] attribute DOMString placeholder;
  16. [CEReactions, Reflect] attribute DOMString src;
  17. [CEReactions, Reflect] attribute DOMString step;
  18. [CEReactions, Reflect] attribute DOMString name;
  19. [CEReactions, Reflect=dirname] attribute DOMString dirName;
  20. [CEReactions, Reflect=value] attribute DOMString defaultValue;
  21. [CEReactions] attribute DOMString type;
  22. attribute boolean indeterminate;
  23. [CEReactions, LegacyNullToEmptyString] attribute DOMString value;
  24. [ImplementedAs=checked_binding] attribute boolean checked;
  25. [CEReactions, Reflect] attribute boolean disabled;
  26. [CEReactions, Reflect=checked] attribute boolean defaultChecked;
  27. [CEReactions, Reflect=formnovalidate] attribute boolean formNoValidate;
  28. [CEReactions, Reflect=formtarget] attribute DOMString formTarget;
  29. [CEReactions, Reflect] attribute boolean multiple;
  30. [CEReactions, Reflect=readonly] attribute boolean readOnly;
  31. [CEReactions, Reflect] attribute boolean required;
  32. [CEReactions, Reflect] attribute DOMString align;
  33. [CEReactions, Reflect=usemap] attribute DOMString useMap;
  34. boolean checkValidity();
  35. boolean reportValidity();
  36. undefined setCustomValidity(DOMString error);
  37. undefined select();
  38. undefined setSelectionRange(unsigned long start, unsigned long end, optional DOMString direction);
  39. undefined showPicker();
  40. };