maxcountryman_web_sys/features/
gen_HtmlSelectElement.rs

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