HTMLTextAreaElement.idl 1.9 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. #import <HTML/HTMLElement.idl>
  2. #import <HTML/HTMLFormElement.idl>
  3. // https://html.spec.whatwg.org/multipage/form-elements.html#htmltextareaelement
  4. [Exposed=Window]
  5. interface HTMLTextAreaElement : HTMLElement {
  6. [HTMLConstructor] constructor();
  7. [CEReactions, Reflect] attribute DOMString autocomplete;
  8. [CEReactions] attribute unsigned long cols;
  9. [CEReactions, Reflect=dirname] attribute DOMString dirName;
  10. [CEReactions, Reflect] attribute boolean disabled;
  11. readonly attribute HTMLFormElement? form;
  12. [CEReactions] attribute long maxLength;
  13. [CEReactions] attribute long minLength;
  14. [CEReactions, Reflect] attribute DOMString name;
  15. [CEReactions, Reflect] attribute DOMString placeholder;
  16. [CEReactions, Reflect=readonly] attribute boolean readOnly;
  17. [CEReactions, Reflect] attribute boolean required;
  18. [CEReactions] attribute unsigned long rows;
  19. [CEReactions, Reflect] attribute DOMString wrap;
  20. readonly attribute DOMString type;
  21. [CEReactions] attribute DOMString defaultValue;
  22. [LegacyNullToEmptyString] attribute DOMString value;
  23. readonly attribute unsigned long textLength;
  24. // FIXME: readonly attribute boolean willValidate;
  25. // FIXME: readonly attribute ValidityState validity;
  26. // FIXME: readonly attribute DOMString validationMessage;
  27. boolean checkValidity();
  28. boolean reportValidity();
  29. undefined setCustomValidity(DOMString error);
  30. // FIXME: readonly attribute NodeList labels;
  31. // FIXME: undefined select();
  32. attribute unsigned long selectionStart;
  33. attribute unsigned long selectionEnd;
  34. // FIXME: attribute DOMString selectionDirection;
  35. // FIXME: undefined setRangeText(DOMString replacement);
  36. // FIXME: undefined setRangeText(DOMString replacement, unsigned long start, unsigned long end, optional SelectionMode selectionMode = "preserve");
  37. // FIXME: undefined setSelectionRange(unsigned long start, unsigned long end, optional DOMString direction);
  38. };