HTMLOptionsCollection.idl 625 B

12345678910111213
  1. #import <DOM/HTMLCollection.idl>
  2. #import <HTML/HTMLOptionElement.idl>
  3. #import <HTML/HTMLOptGroupElement.idl>
  4. // https://html.spec.whatwg.org/#htmloptionscollection
  5. [Exposed=Window]
  6. interface HTMLOptionsCollection : HTMLCollection {
  7. // [CEReactions] attribute unsigned long length; // shadows inherited length
  8. // [CEReactions] setter undefined (unsigned long index, HTMLOptionElement? option);
  9. [CEReactions] undefined add((HTMLOptionElement or HTMLOptGroupElement) element, optional (HTMLElement or long)? before = null);
  10. // [CEReactions] undefined remove(long index);
  11. // attribute long selectedIndex;
  12. };