HTMLOptionElement
Generated from idl/html.webidl when the site was built at 7aa23e2.
HTMLOptionElement is an interface in idl/html.webidl, inheriting HTMLElement, exposed in Window. What it does is on MDN; this page says what niso has of it.
Status
Section titled “Status”The web features its members belong to, each with its Baseline status on the web and how much of the feature’s WPT suite passes in niso (see Web platform support).
| Feature | On the web | In niso | Members |
|---|---|---|---|
| <select> | Widely available | Partial 66% 291 of 438 subtests pass | 7 |
Members
Section titled “Members”constructor
Section titled “constructor”[HTMLConstructor] constructor();disabled
Section titled “disabled”attribute boolean disabled;int32_t niso_html_option_element_get_disabled(niso_dom* dom, niso_handle self, bool* out);int32_t niso_html_option_element_set_disabled(niso_dom* dom, niso_handle self, bool value);defaultSelected
Section titled “defaultSelected”attribute boolean defaultSelected;int32_t niso_html_option_element_get_default_selected(niso_dom* dom, niso_handle self, bool* out);int32_t niso_html_option_element_set_default_selected(niso_dom* dom, niso_handle self, bool value);selected
Section titled “selected”attribute boolean selected;int32_t niso_html_option_element_get_selected(niso_dom* dom, niso_handle self, bool* out);int32_t niso_html_option_element_set_selected(niso_dom* dom, niso_handle self, bool value);attribute DOMString value;int32_t niso_html_option_element_get_value(niso_dom* dom, niso_handle self, niso_str* out);int32_t niso_html_option_element_set_value(niso_dom* dom, niso_handle self, const char* value, size_t value_len);attribute DOMString text;int32_t niso_html_option_element_get_text(niso_dom* dom, niso_handle self, niso_str* out);int32_t niso_html_option_element_set_text(niso_dom* dom, niso_handle self, const char* value, size_t value_len);readonly attribute long index;int32_t niso_html_option_element_get_index(niso_dom* dom, niso_handle self, int32_t* out);Not in niso yet
Section titled “Not in niso yet”Members the web has, by the BCD keys web-features 3.45.0 lists, that idl/ doesn’t declare. The list is partial: web-features lists only the keys it maps to a feature.
Option(<select>)form(<select>)label(<select>)