Skip to main content

web_sys/features/
gen_HtmlSelectElement.rs

1#![allow(unused_imports)]
2#![allow(clippy::all)]
3use super::*;
4use wasm_bindgen::prelude::*;
5#[wasm_bindgen]
6extern "C" {
7    #[wasm_bindgen(
8        extends = "HtmlElement",
9        extends = "Element",
10        extends = "Node",
11        extends = "EventTarget",
12        extends = "::js_sys::Object",
13        js_name = "HTMLSelectElement",
14        typescript_type = "HTMLSelectElement"
15    )]
16    #[derive(Debug, Clone, PartialEq, Eq)]
17    #[doc = "The `HtmlSelectElement` class."]
18    #[doc = ""]
19    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLSelectElement)"]
20    #[doc = ""]
21    #[doc = "*This API requires the following crate features to be activated: `HtmlSelectElement`*"]
22    pub type HtmlSelectElement;
23    #[wasm_bindgen(method, getter, js_class = "HTMLSelectElement", js_name = "autofocus")]
24    #[doc = "Getter for the `autofocus` field of this object."]
25    #[doc = ""]
26    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLSelectElement/autofocus)"]
27    #[doc = ""]
28    #[doc = "*This API requires the following crate features to be activated: `HtmlSelectElement`*"]
29    #[deprecated(
30        note = "Use `HtmlElement::autofocus()` or `HtmlElement::set_autofocus()` instead."
31    )]
32    pub fn autofocus(this: &HtmlSelectElement) -> bool;
33    #[wasm_bindgen(method, setter, js_class = "HTMLSelectElement", js_name = "autofocus")]
34    #[doc = "Setter for the `autofocus` field of this object."]
35    #[doc = ""]
36    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLSelectElement/autofocus)"]
37    #[doc = ""]
38    #[doc = "*This API requires the following crate features to be activated: `HtmlSelectElement`*"]
39    #[deprecated(
40        note = "Use `HtmlElement::autofocus()` or `HtmlElement::set_autofocus()` instead."
41    )]
42    pub fn set_autofocus(this: &HtmlSelectElement, value: bool);
43    #[wasm_bindgen(
44        method,
45        getter,
46        js_class = "HTMLSelectElement",
47        js_name = "autocomplete"
48    )]
49    #[doc = "Getter for the `autocomplete` field of this object."]
50    #[doc = ""]
51    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLSelectElement/autocomplete)"]
52    #[doc = ""]
53    #[doc = "*This API requires the following crate features to be activated: `HtmlSelectElement`*"]
54    pub fn autocomplete(this: &HtmlSelectElement) -> ::alloc::string::String;
55    #[wasm_bindgen(
56        method,
57        setter,
58        js_class = "HTMLSelectElement",
59        js_name = "autocomplete"
60    )]
61    #[doc = "Setter for the `autocomplete` field of this object."]
62    #[doc = ""]
63    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLSelectElement/autocomplete)"]
64    #[doc = ""]
65    #[doc = "*This API requires the following crate features to be activated: `HtmlSelectElement`*"]
66    pub fn set_autocomplete(this: &HtmlSelectElement, value: &str);
67    #[wasm_bindgen(method, getter, js_class = "HTMLSelectElement", js_name = "disabled")]
68    #[doc = "Getter for the `disabled` field of this object."]
69    #[doc = ""]
70    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLSelectElement/disabled)"]
71    #[doc = ""]
72    #[doc = "*This API requires the following crate features to be activated: `HtmlSelectElement`*"]
73    pub fn disabled(this: &HtmlSelectElement) -> bool;
74    #[wasm_bindgen(method, setter, js_class = "HTMLSelectElement", js_name = "disabled")]
75    #[doc = "Setter for the `disabled` field of this object."]
76    #[doc = ""]
77    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLSelectElement/disabled)"]
78    #[doc = ""]
79    #[doc = "*This API requires the following crate features to be activated: `HtmlSelectElement`*"]
80    pub fn set_disabled(this: &HtmlSelectElement, value: bool);
81    #[cfg(feature = "HtmlFormElement")]
82    #[wasm_bindgen(method, getter, js_class = "HTMLSelectElement", js_name = "form")]
83    #[doc = "Getter for the `form` field of this object."]
84    #[doc = ""]
85    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLSelectElement/form)"]
86    #[doc = ""]
87    #[doc = "*This API requires the following crate features to be activated: `HtmlFormElement`, `HtmlSelectElement`*"]
88    pub fn form(this: &HtmlSelectElement) -> Option<HtmlFormElement>;
89    #[wasm_bindgen(method, getter, js_class = "HTMLSelectElement", js_name = "multiple")]
90    #[doc = "Getter for the `multiple` field of this object."]
91    #[doc = ""]
92    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLSelectElement/multiple)"]
93    #[doc = ""]
94    #[doc = "*This API requires the following crate features to be activated: `HtmlSelectElement`*"]
95    pub fn multiple(this: &HtmlSelectElement) -> bool;
96    #[wasm_bindgen(method, setter, js_class = "HTMLSelectElement", js_name = "multiple")]
97    #[doc = "Setter for the `multiple` field of this object."]
98    #[doc = ""]
99    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLSelectElement/multiple)"]
100    #[doc = ""]
101    #[doc = "*This API requires the following crate features to be activated: `HtmlSelectElement`*"]
102    pub fn set_multiple(this: &HtmlSelectElement, value: bool);
103    #[wasm_bindgen(method, getter, js_class = "HTMLSelectElement", js_name = "name")]
104    #[doc = "Getter for the `name` field of this object."]
105    #[doc = ""]
106    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLSelectElement/name)"]
107    #[doc = ""]
108    #[doc = "*This API requires the following crate features to be activated: `HtmlSelectElement`*"]
109    pub fn name(this: &HtmlSelectElement) -> ::alloc::string::String;
110    #[wasm_bindgen(method, setter, js_class = "HTMLSelectElement", js_name = "name")]
111    #[doc = "Setter for the `name` field of this object."]
112    #[doc = ""]
113    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLSelectElement/name)"]
114    #[doc = ""]
115    #[doc = "*This API requires the following crate features to be activated: `HtmlSelectElement`*"]
116    pub fn set_name(this: &HtmlSelectElement, value: &str);
117    #[wasm_bindgen(method, getter, js_class = "HTMLSelectElement", js_name = "required")]
118    #[doc = "Getter for the `required` field of this object."]
119    #[doc = ""]
120    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLSelectElement/required)"]
121    #[doc = ""]
122    #[doc = "*This API requires the following crate features to be activated: `HtmlSelectElement`*"]
123    pub fn required(this: &HtmlSelectElement) -> bool;
124    #[wasm_bindgen(method, setter, js_class = "HTMLSelectElement", js_name = "required")]
125    #[doc = "Setter for the `required` field of this object."]
126    #[doc = ""]
127    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLSelectElement/required)"]
128    #[doc = ""]
129    #[doc = "*This API requires the following crate features to be activated: `HtmlSelectElement`*"]
130    pub fn set_required(this: &HtmlSelectElement, value: bool);
131    #[wasm_bindgen(method, getter, js_class = "HTMLSelectElement", js_name = "size")]
132    #[doc = "Getter for the `size` field of this object."]
133    #[doc = ""]
134    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLSelectElement/size)"]
135    #[doc = ""]
136    #[doc = "*This API requires the following crate features to be activated: `HtmlSelectElement`*"]
137    pub fn size(this: &HtmlSelectElement) -> u32;
138    #[wasm_bindgen(method, setter, js_class = "HTMLSelectElement", js_name = "size")]
139    #[doc = "Setter for the `size` field of this object."]
140    #[doc = ""]
141    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLSelectElement/size)"]
142    #[doc = ""]
143    #[doc = "*This API requires the following crate features to be activated: `HtmlSelectElement`*"]
144    pub fn set_size(this: &HtmlSelectElement, value: u32);
145    #[wasm_bindgen(method, getter, js_class = "HTMLSelectElement", js_name = "type")]
146    #[doc = "Getter for the `type` field of this object."]
147    #[doc = ""]
148    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLSelectElement/type)"]
149    #[doc = ""]
150    #[doc = "*This API requires the following crate features to be activated: `HtmlSelectElement`*"]
151    pub fn type_(this: &HtmlSelectElement) -> ::alloc::string::String;
152    #[cfg(feature = "HtmlOptionsCollection")]
153    #[wasm_bindgen(method, getter, js_class = "HTMLSelectElement", js_name = "options")]
154    #[doc = "Getter for the `options` field of this object."]
155    #[doc = ""]
156    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLSelectElement/options)"]
157    #[doc = ""]
158    #[doc = "*This API requires the following crate features to be activated: `HtmlOptionsCollection`, `HtmlSelectElement`*"]
159    pub fn options(this: &HtmlSelectElement) -> HtmlOptionsCollection;
160    #[wasm_bindgen(method, getter, js_class = "HTMLSelectElement", js_name = "length")]
161    #[doc = "Getter for the `length` field of this object."]
162    #[doc = ""]
163    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLSelectElement/length)"]
164    #[doc = ""]
165    #[doc = "*This API requires the following crate features to be activated: `HtmlSelectElement`*"]
166    pub fn length(this: &HtmlSelectElement) -> u32;
167    #[wasm_bindgen(method, setter, js_class = "HTMLSelectElement", js_name = "length")]
168    #[doc = "Setter for the `length` field of this object."]
169    #[doc = ""]
170    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLSelectElement/length)"]
171    #[doc = ""]
172    #[doc = "*This API requires the following crate features to be activated: `HtmlSelectElement`*"]
173    pub fn set_length(this: &HtmlSelectElement, value: u32);
174    #[cfg(feature = "HtmlCollection")]
175    #[wasm_bindgen(
176        method,
177        getter,
178        js_class = "HTMLSelectElement",
179        js_name = "selectedOptions"
180    )]
181    #[doc = "Getter for the `selectedOptions` field of this object."]
182    #[doc = ""]
183    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLSelectElement/selectedOptions)"]
184    #[doc = ""]
185    #[doc = "*This API requires the following crate features to be activated: `HtmlCollection`, `HtmlSelectElement`*"]
186    pub fn selected_options(this: &HtmlSelectElement) -> HtmlCollection;
187    #[wasm_bindgen(
188        method,
189        getter,
190        js_class = "HTMLSelectElement",
191        js_name = "selectedIndex"
192    )]
193    #[doc = "Getter for the `selectedIndex` field of this object."]
194    #[doc = ""]
195    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLSelectElement/selectedIndex)"]
196    #[doc = ""]
197    #[doc = "*This API requires the following crate features to be activated: `HtmlSelectElement`*"]
198    pub fn selected_index(this: &HtmlSelectElement) -> i32;
199    #[wasm_bindgen(
200        method,
201        setter,
202        js_class = "HTMLSelectElement",
203        js_name = "selectedIndex"
204    )]
205    #[doc = "Setter for the `selectedIndex` field of this object."]
206    #[doc = ""]
207    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLSelectElement/selectedIndex)"]
208    #[doc = ""]
209    #[doc = "*This API requires the following crate features to be activated: `HtmlSelectElement`*"]
210    pub fn set_selected_index(this: &HtmlSelectElement, value: i32);
211    #[wasm_bindgen(method, getter, js_class = "HTMLSelectElement", js_name = "value")]
212    #[doc = "Getter for the `value` field of this object."]
213    #[doc = ""]
214    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLSelectElement/value)"]
215    #[doc = ""]
216    #[doc = "*This API requires the following crate features to be activated: `HtmlSelectElement`*"]
217    pub fn value(this: &HtmlSelectElement) -> ::alloc::string::String;
218    #[wasm_bindgen(method, setter, js_class = "HTMLSelectElement", js_name = "value")]
219    #[doc = "Setter for the `value` field of this object."]
220    #[doc = ""]
221    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLSelectElement/value)"]
222    #[doc = ""]
223    #[doc = "*This API requires the following crate features to be activated: `HtmlSelectElement`*"]
224    pub fn set_value(this: &HtmlSelectElement, value: &str);
225    #[wasm_bindgen(
226        method,
227        getter,
228        js_class = "HTMLSelectElement",
229        js_name = "willValidate"
230    )]
231    #[doc = "Getter for the `willValidate` field of this object."]
232    #[doc = ""]
233    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLSelectElement/willValidate)"]
234    #[doc = ""]
235    #[doc = "*This API requires the following crate features to be activated: `HtmlSelectElement`*"]
236    pub fn will_validate(this: &HtmlSelectElement) -> bool;
237    #[cfg(feature = "ValidityState")]
238    #[wasm_bindgen(method, getter, js_class = "HTMLSelectElement", js_name = "validity")]
239    #[doc = "Getter for the `validity` field of this object."]
240    #[doc = ""]
241    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLSelectElement/validity)"]
242    #[doc = ""]
243    #[doc = "*This API requires the following crate features to be activated: `HtmlSelectElement`, `ValidityState`*"]
244    pub fn validity(this: &HtmlSelectElement) -> ValidityState;
245    #[wasm_bindgen(
246        catch,
247        method,
248        getter,
249        js_class = "HTMLSelectElement",
250        js_name = "validationMessage"
251    )]
252    #[doc = "Getter for the `validationMessage` field of this object."]
253    #[doc = ""]
254    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLSelectElement/validationMessage)"]
255    #[doc = ""]
256    #[doc = "*This API requires the following crate features to be activated: `HtmlSelectElement`*"]
257    pub fn validation_message(this: &HtmlSelectElement)
258        -> Result<::alloc::string::String, JsValue>;
259    #[cfg(feature = "NodeList")]
260    #[wasm_bindgen(method, getter, js_class = "HTMLSelectElement", js_name = "labels")]
261    #[doc = "Getter for the `labels` field of this object."]
262    #[doc = ""]
263    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLSelectElement/labels)"]
264    #[doc = ""]
265    #[doc = "*This API requires the following crate features to be activated: `HtmlSelectElement`, `NodeList`*"]
266    pub fn labels(this: &HtmlSelectElement) -> NodeList;
267    #[cfg(feature = "HtmlOptionElement")]
268    #[wasm_bindgen(catch, method, js_class = "HTMLSelectElement", js_name = "add")]
269    #[doc = "The `add()` method."]
270    #[doc = ""]
271    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLSelectElement/add)"]
272    #[doc = ""]
273    #[doc = "*This API requires the following crate features to be activated: `HtmlOptionElement`, `HtmlSelectElement`*"]
274    pub fn add_with_html_option_element(
275        this: &HtmlSelectElement,
276        element: &HtmlOptionElement,
277    ) -> Result<(), JsValue>;
278    #[cfg(feature = "HtmlOptGroupElement")]
279    #[wasm_bindgen(catch, method, js_class = "HTMLSelectElement", js_name = "add")]
280    #[doc = "The `add()` method."]
281    #[doc = ""]
282    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLSelectElement/add)"]
283    #[doc = ""]
284    #[doc = "*This API requires the following crate features to be activated: `HtmlOptGroupElement`, `HtmlSelectElement`*"]
285    pub fn add_with_html_opt_group_element(
286        this: &HtmlSelectElement,
287        element: &HtmlOptGroupElement,
288    ) -> Result<(), JsValue>;
289    #[cfg(feature = "HtmlOptionElement")]
290    #[wasm_bindgen(catch, method, js_class = "HTMLSelectElement", js_name = "add")]
291    #[doc = "The `add()` method."]
292    #[doc = ""]
293    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLSelectElement/add)"]
294    #[doc = ""]
295    #[doc = "*This API requires the following crate features to be activated: `HtmlOptionElement`, `HtmlSelectElement`*"]
296    pub fn add_with_html_option_element_and_opt_html_element(
297        this: &HtmlSelectElement,
298        element: &HtmlOptionElement,
299        before: Option<&HtmlElement>,
300    ) -> Result<(), JsValue>;
301    #[cfg(feature = "HtmlOptGroupElement")]
302    #[wasm_bindgen(catch, method, js_class = "HTMLSelectElement", js_name = "add")]
303    #[doc = "The `add()` method."]
304    #[doc = ""]
305    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLSelectElement/add)"]
306    #[doc = ""]
307    #[doc = "*This API requires the following crate features to be activated: `HtmlOptGroupElement`, `HtmlSelectElement`*"]
308    pub fn add_with_html_opt_group_element_and_opt_html_element(
309        this: &HtmlSelectElement,
310        element: &HtmlOptGroupElement,
311        before: Option<&HtmlElement>,
312    ) -> Result<(), JsValue>;
313    #[cfg(feature = "HtmlOptionElement")]
314    #[wasm_bindgen(catch, method, js_class = "HTMLSelectElement", js_name = "add")]
315    #[doc = "The `add()` method."]
316    #[doc = ""]
317    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLSelectElement/add)"]
318    #[doc = ""]
319    #[doc = "*This API requires the following crate features to be activated: `HtmlOptionElement`, `HtmlSelectElement`*"]
320    pub fn add_with_html_option_element_and_opt_i32(
321        this: &HtmlSelectElement,
322        element: &HtmlOptionElement,
323        before: Option<i32>,
324    ) -> Result<(), JsValue>;
325    #[cfg(feature = "HtmlOptGroupElement")]
326    #[wasm_bindgen(catch, method, js_class = "HTMLSelectElement", js_name = "add")]
327    #[doc = "The `add()` method."]
328    #[doc = ""]
329    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLSelectElement/add)"]
330    #[doc = ""]
331    #[doc = "*This API requires the following crate features to be activated: `HtmlOptGroupElement`, `HtmlSelectElement`*"]
332    pub fn add_with_html_opt_group_element_and_opt_i32(
333        this: &HtmlSelectElement,
334        element: &HtmlOptGroupElement,
335        before: Option<i32>,
336    ) -> Result<(), JsValue>;
337    #[wasm_bindgen(method, js_class = "HTMLSelectElement", js_name = "checkValidity")]
338    #[doc = "The `checkValidity()` method."]
339    #[doc = ""]
340    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLSelectElement/checkValidity)"]
341    #[doc = ""]
342    #[doc = "*This API requires the following crate features to be activated: `HtmlSelectElement`*"]
343    pub fn check_validity(this: &HtmlSelectElement) -> bool;
344    #[wasm_bindgen(method, js_class = "HTMLSelectElement")]
345    #[doc = "The `item()` method."]
346    #[doc = ""]
347    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLSelectElement/item)"]
348    #[doc = ""]
349    #[doc = "*This API requires the following crate features to be activated: `HtmlSelectElement`*"]
350    pub fn item(this: &HtmlSelectElement, index: u32) -> Option<Element>;
351    #[cfg(feature = "HtmlOptionElement")]
352    #[wasm_bindgen(method, js_class = "HTMLSelectElement", js_name = "namedItem")]
353    #[doc = "The `namedItem()` method."]
354    #[doc = ""]
355    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLSelectElement/namedItem)"]
356    #[doc = ""]
357    #[doc = "*This API requires the following crate features to be activated: `HtmlOptionElement`, `HtmlSelectElement`*"]
358    pub fn named_item(this: &HtmlSelectElement, name: &str) -> Option<HtmlOptionElement>;
359    #[wasm_bindgen(method, js_class = "HTMLSelectElement", js_name = "remove")]
360    #[doc = "The `remove()` method."]
361    #[doc = ""]
362    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLSelectElement/remove)"]
363    #[doc = ""]
364    #[doc = "*This API requires the following crate features to be activated: `HtmlSelectElement`*"]
365    pub fn remove_with_index(this: &HtmlSelectElement, index: i32);
366    #[wasm_bindgen(method, js_class = "HTMLSelectElement")]
367    #[doc = "The `remove()` method."]
368    #[doc = ""]
369    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLSelectElement/remove)"]
370    #[doc = ""]
371    #[doc = "*This API requires the following crate features to be activated: `HtmlSelectElement`*"]
372    pub fn remove(this: &HtmlSelectElement);
373    #[wasm_bindgen(method, js_class = "HTMLSelectElement", js_name = "reportValidity")]
374    #[doc = "The `reportValidity()` method."]
375    #[doc = ""]
376    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLSelectElement/reportValidity)"]
377    #[doc = ""]
378    #[doc = "*This API requires the following crate features to be activated: `HtmlSelectElement`*"]
379    pub fn report_validity(this: &HtmlSelectElement) -> bool;
380    #[wasm_bindgen(method, js_class = "HTMLSelectElement", js_name = "setCustomValidity")]
381    #[doc = "The `setCustomValidity()` method."]
382    #[doc = ""]
383    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLSelectElement/setCustomValidity)"]
384    #[doc = ""]
385    #[doc = "*This API requires the following crate features to be activated: `HtmlSelectElement`*"]
386    pub fn set_custom_validity(this: &HtmlSelectElement, error: &str);
387    #[wasm_bindgen(method, js_class = "HTMLSelectElement", indexing_getter)]
388    #[doc = "Indexing getter. As in the literal Javascript `this[key]`."]
389    #[doc = ""]
390    #[doc = ""]
391    #[doc = "*This API requires the following crate features to be activated: `HtmlSelectElement`*"]
392    pub fn get(this: &HtmlSelectElement, index: u32) -> Option<Element>;
393    #[cfg(feature = "HtmlOptionElement")]
394    #[wasm_bindgen(catch, method, js_class = "HTMLSelectElement", indexing_setter)]
395    #[doc = "Indexing setter. As in the literal Javascript `this[key] = value`."]
396    #[doc = ""]
397    #[doc = ""]
398    #[doc = "*This API requires the following crate features to be activated: `HtmlOptionElement`, `HtmlSelectElement`*"]
399    pub fn set(
400        this: &HtmlSelectElement,
401        index: u32,
402        option: Option<&HtmlOptionElement>,
403    ) -> Result<(), JsValue>;
404}