HTMLSelectElement.idl 758 B

12345678910111213141516171819202122
  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. [Reflect] attribute boolean disabled;
  7. [Reflect] attribute boolean multiple;
  8. [Reflect] attribute boolean required;
  9. [SameObject] readonly attribute HTMLOptionsCollection options;
  10. readonly attribute DOMString type;
  11. readonly attribute unsigned long length;
  12. getter Element? item(unsigned long index);
  13. getter Element? namedItem(DOMString name);
  14. [CEReactions] undefined add((HTMLOptionElement or HTMLOptGroupElement) element, optional (HTMLElement or long)? before = null);
  15. attribute long selectedIndex;
  16. };