HTMLSelectElement.idl 835 B

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