HTMLSelectElement.idl 1.9 KB

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