HTMLSelectElement.idl 1.9 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  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. // FIXME: [CEReactions] attribute unsigned long size;
  15. readonly attribute DOMString type;
  16. [SameObject] readonly attribute HTMLOptionsCollection options;
  17. // FIXME: This isn't readonly
  18. [CEReactions] readonly attribute unsigned long length;
  19. // FIXME: Element is really HTMLOptionElement
  20. getter Element? item(unsigned long index);
  21. // FIXME: Element is really HTMLOptionElement
  22. Element? namedItem(DOMString name);
  23. [CEReactions] undefined add((HTMLOptionElement or HTMLOptGroupElement) element, optional (HTMLElement or long)? before = null);
  24. // FIXME: [CEReactions] undefined remove(); // ChildNode overload
  25. // FIXME: [CEReactions] undefined remove(long index);
  26. // FIXME: [CEReactions] setter undefined (unsigned long index, HTMLOptionElement? option);
  27. // FIXME: [SameObject] readonly attribute HTMLCollection selectedOptions;
  28. attribute long selectedIndex;
  29. attribute DOMString value;
  30. // FIXME: readonly attribute boolean willValidate;
  31. // FIXME: readonly attribute ValidityState validity;
  32. // FIXME: readonly attribute DOMString validationMessage;
  33. // FIXME: boolean checkValidity();
  34. // FIXME: boolean reportValidity();
  35. // FIXME: undefined setCustomValidity(DOMString error);
  36. // FIXME: readonly attribute NodeList labels;
  37. };