HTMLSelectElement.idl 1.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. #import <HTML/HTMLElement.idl>
  2. #import <HTML/HTMLFormElement.idl>
  3. #import <HTML/HTMLOptionsCollection.idl>
  4. // https://html.spec.whatwg.org/multipage/form-elements.html#htmlselectelement
  5. [Exposed=Window]
  6. interface HTMLSelectElement : HTMLElement {
  7. [HTMLConstructor] constructor();
  8. [CEReactions, Reflect] attribute DOMString autocomplete;
  9. [CEReactions, Reflect] attribute boolean disabled;
  10. readonly attribute HTMLFormElement? form;
  11. [CEReactions, Reflect] attribute boolean multiple;
  12. [CEReactions, Reflect] attribute DOMString name;
  13. [CEReactions, Reflect] attribute boolean required;
  14. [CEReactions] attribute unsigned long size;
  15. readonly attribute DOMString type;
  16. [SameObject] readonly attribute HTMLOptionsCollection options;
  17. [CEReactions] attribute unsigned long length;
  18. getter HTMLOptionElement? item(unsigned long index);
  19. HTMLOptionElement? namedItem(DOMString name);
  20. [CEReactions] undefined add((HTMLOptionElement or HTMLOptGroupElement) element, optional (HTMLElement or long)? before = null);
  21. [CEReactions] undefined remove(); // ChildNode overload
  22. [CEReactions] undefined remove(long index);
  23. [FIXME, CEReactions] setter undefined (unsigned long index, HTMLOptionElement? option);
  24. [SameObject] readonly attribute HTMLCollection selectedOptions;
  25. attribute long selectedIndex;
  26. attribute DOMString value;
  27. [FIXME] readonly attribute boolean willValidate;
  28. [FIXME] readonly attribute ValidityState validity;
  29. [FIXME] readonly attribute DOMString validationMessage;
  30. [FIXME] boolean checkValidity();
  31. [FIXME] boolean reportValidity();
  32. [FIXME] undefined setCustomValidity(DOMString error);
  33. readonly attribute NodeList labels;
  34. };