HTMLOptionElement.idl 769 B

1234567891011121314151617
  1. #import <HTML/HTMLElement.idl>
  2. // https://html.spec.whatwg.org/multipage/form-elements.html#htmloptionelement
  3. [Exposed=Window, LegacyFactoryFunction=Option(optional DOMString text = "", optional DOMString value, optional boolean defaultSelected = false, optional boolean selected = false)]
  4. interface HTMLOptionElement : HTMLElement {
  5. [HTMLConstructor] constructor();
  6. [CEReactions, Reflect] attribute boolean disabled;
  7. // FIXME: readonly attribute HTMLFormElement? form;
  8. [CEReactions, Reflect] attribute DOMString label;
  9. [CEReactions, Reflect=selected] attribute boolean defaultSelected;
  10. attribute boolean selected;
  11. [CEReactions] attribute DOMString value;
  12. [CEReactions] attribute DOMString text;
  13. readonly attribute long index;
  14. };