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