HTMLSelectElement.idl 718 B

1234567891011121314151617181920
  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 unsigned long length;
  11. getter Element? item(unsigned long index);
  12. getter Element? namedItem(DOMString name);
  13. [CEReactions] undefined add((HTMLOptionElement or HTMLOptGroupElement) element, optional (HTMLElement or long)? before = null);
  14. attribute long selectedIndex;
  15. };