Skip to main content

web_sys/features/
gen_HtmlTextAreaElement.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 = "HTMLTextAreaElement",
14        typescript_type = "HTMLTextAreaElement"
15    )]
16    #[derive(Debug, Clone, PartialEq, Eq)]
17    #[doc = "The `HtmlTextAreaElement` class."]
18    #[doc = ""]
19    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLTextAreaElement)"]
20    #[doc = ""]
21    #[doc = "*This API requires the following crate features to be activated: `HtmlTextAreaElement`*"]
22    pub type HtmlTextAreaElement;
23    #[wasm_bindgen(
24        method,
25        getter,
26        js_class = "HTMLTextAreaElement",
27        js_name = "autocomplete"
28    )]
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/HTMLTextAreaElement/autocomplete)"]
32    #[doc = ""]
33    #[doc = "*This API requires the following crate features to be activated: `HtmlTextAreaElement`*"]
34    pub fn autocomplete(this: &HtmlTextAreaElement) -> ::alloc::string::String;
35    #[wasm_bindgen(
36        method,
37        setter,
38        js_class = "HTMLTextAreaElement",
39        js_name = "autocomplete"
40    )]
41    #[doc = "Setter for the `autocomplete` field of this object."]
42    #[doc = ""]
43    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLTextAreaElement/autocomplete)"]
44    #[doc = ""]
45    #[doc = "*This API requires the following crate features to be activated: `HtmlTextAreaElement`*"]
46    pub fn set_autocomplete(this: &HtmlTextAreaElement, value: &str);
47    #[wasm_bindgen(
48        method,
49        getter,
50        js_class = "HTMLTextAreaElement",
51        js_name = "autofocus"
52    )]
53    #[doc = "Getter for the `autofocus` field of this object."]
54    #[doc = ""]
55    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLTextAreaElement/autofocus)"]
56    #[doc = ""]
57    #[doc = "*This API requires the following crate features to be activated: `HtmlTextAreaElement`*"]
58    #[deprecated(
59        note = "Use `HtmlElement::autofocus()` or `HtmlElement::set_autofocus()` instead."
60    )]
61    pub fn autofocus(this: &HtmlTextAreaElement) -> bool;
62    #[wasm_bindgen(
63        method,
64        setter,
65        js_class = "HTMLTextAreaElement",
66        js_name = "autofocus"
67    )]
68    #[doc = "Setter for the `autofocus` field of this object."]
69    #[doc = ""]
70    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLTextAreaElement/autofocus)"]
71    #[doc = ""]
72    #[doc = "*This API requires the following crate features to be activated: `HtmlTextAreaElement`*"]
73    #[deprecated(
74        note = "Use `HtmlElement::autofocus()` or `HtmlElement::set_autofocus()` instead."
75    )]
76    pub fn set_autofocus(this: &HtmlTextAreaElement, value: bool);
77    #[wasm_bindgen(method, getter, js_class = "HTMLTextAreaElement", js_name = "cols")]
78    #[doc = "Getter for the `cols` field of this object."]
79    #[doc = ""]
80    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLTextAreaElement/cols)"]
81    #[doc = ""]
82    #[doc = "*This API requires the following crate features to be activated: `HtmlTextAreaElement`*"]
83    pub fn cols(this: &HtmlTextAreaElement) -> u32;
84    #[wasm_bindgen(method, setter, js_class = "HTMLTextAreaElement", js_name = "cols")]
85    #[doc = "Setter for the `cols` field of this object."]
86    #[doc = ""]
87    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLTextAreaElement/cols)"]
88    #[doc = ""]
89    #[doc = "*This API requires the following crate features to be activated: `HtmlTextAreaElement`*"]
90    pub fn set_cols(this: &HtmlTextAreaElement, value: u32);
91    #[wasm_bindgen(method, getter, js_class = "HTMLTextAreaElement", js_name = "disabled")]
92    #[doc = "Getter for the `disabled` field of this object."]
93    #[doc = ""]
94    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLTextAreaElement/disabled)"]
95    #[doc = ""]
96    #[doc = "*This API requires the following crate features to be activated: `HtmlTextAreaElement`*"]
97    pub fn disabled(this: &HtmlTextAreaElement) -> bool;
98    #[wasm_bindgen(method, setter, js_class = "HTMLTextAreaElement", js_name = "disabled")]
99    #[doc = "Setter for the `disabled` field of this object."]
100    #[doc = ""]
101    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLTextAreaElement/disabled)"]
102    #[doc = ""]
103    #[doc = "*This API requires the following crate features to be activated: `HtmlTextAreaElement`*"]
104    pub fn set_disabled(this: &HtmlTextAreaElement, value: bool);
105    #[cfg(feature = "HtmlFormElement")]
106    #[wasm_bindgen(method, getter, js_class = "HTMLTextAreaElement", js_name = "form")]
107    #[doc = "Getter for the `form` field of this object."]
108    #[doc = ""]
109    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLTextAreaElement/form)"]
110    #[doc = ""]
111    #[doc = "*This API requires the following crate features to be activated: `HtmlFormElement`, `HtmlTextAreaElement`*"]
112    pub fn form(this: &HtmlTextAreaElement) -> Option<HtmlFormElement>;
113    #[wasm_bindgen(
114        method,
115        getter,
116        js_class = "HTMLTextAreaElement",
117        js_name = "maxLength"
118    )]
119    #[doc = "Getter for the `maxLength` field of this object."]
120    #[doc = ""]
121    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLTextAreaElement/maxLength)"]
122    #[doc = ""]
123    #[doc = "*This API requires the following crate features to be activated: `HtmlTextAreaElement`*"]
124    pub fn max_length(this: &HtmlTextAreaElement) -> i32;
125    #[wasm_bindgen(
126        method,
127        setter,
128        js_class = "HTMLTextAreaElement",
129        js_name = "maxLength"
130    )]
131    #[doc = "Setter for the `maxLength` field of this object."]
132    #[doc = ""]
133    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLTextAreaElement/maxLength)"]
134    #[doc = ""]
135    #[doc = "*This API requires the following crate features to be activated: `HtmlTextAreaElement`*"]
136    pub fn set_max_length(this: &HtmlTextAreaElement, value: i32);
137    #[wasm_bindgen(
138        method,
139        getter,
140        js_class = "HTMLTextAreaElement",
141        js_name = "minLength"
142    )]
143    #[doc = "Getter for the `minLength` field of this object."]
144    #[doc = ""]
145    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLTextAreaElement/minLength)"]
146    #[doc = ""]
147    #[doc = "*This API requires the following crate features to be activated: `HtmlTextAreaElement`*"]
148    pub fn min_length(this: &HtmlTextAreaElement) -> i32;
149    #[wasm_bindgen(
150        method,
151        setter,
152        js_class = "HTMLTextAreaElement",
153        js_name = "minLength"
154    )]
155    #[doc = "Setter for the `minLength` field of this object."]
156    #[doc = ""]
157    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLTextAreaElement/minLength)"]
158    #[doc = ""]
159    #[doc = "*This API requires the following crate features to be activated: `HtmlTextAreaElement`*"]
160    pub fn set_min_length(this: &HtmlTextAreaElement, value: i32);
161    #[wasm_bindgen(method, getter, js_class = "HTMLTextAreaElement", js_name = "name")]
162    #[doc = "Getter for the `name` field of this object."]
163    #[doc = ""]
164    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLTextAreaElement/name)"]
165    #[doc = ""]
166    #[doc = "*This API requires the following crate features to be activated: `HtmlTextAreaElement`*"]
167    pub fn name(this: &HtmlTextAreaElement) -> ::alloc::string::String;
168    #[wasm_bindgen(method, setter, js_class = "HTMLTextAreaElement", js_name = "name")]
169    #[doc = "Setter for the `name` field of this object."]
170    #[doc = ""]
171    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLTextAreaElement/name)"]
172    #[doc = ""]
173    #[doc = "*This API requires the following crate features to be activated: `HtmlTextAreaElement`*"]
174    pub fn set_name(this: &HtmlTextAreaElement, value: &str);
175    #[wasm_bindgen(
176        method,
177        getter,
178        js_class = "HTMLTextAreaElement",
179        js_name = "placeholder"
180    )]
181    #[doc = "Getter for the `placeholder` field of this object."]
182    #[doc = ""]
183    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLTextAreaElement/placeholder)"]
184    #[doc = ""]
185    #[doc = "*This API requires the following crate features to be activated: `HtmlTextAreaElement`*"]
186    pub fn placeholder(this: &HtmlTextAreaElement) -> ::alloc::string::String;
187    #[wasm_bindgen(
188        method,
189        setter,
190        js_class = "HTMLTextAreaElement",
191        js_name = "placeholder"
192    )]
193    #[doc = "Setter for the `placeholder` field of this object."]
194    #[doc = ""]
195    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLTextAreaElement/placeholder)"]
196    #[doc = ""]
197    #[doc = "*This API requires the following crate features to be activated: `HtmlTextAreaElement`*"]
198    pub fn set_placeholder(this: &HtmlTextAreaElement, value: &str);
199    #[wasm_bindgen(method, getter, js_class = "HTMLTextAreaElement", js_name = "readOnly")]
200    #[doc = "Getter for the `readOnly` field of this object."]
201    #[doc = ""]
202    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLTextAreaElement/readOnly)"]
203    #[doc = ""]
204    #[doc = "*This API requires the following crate features to be activated: `HtmlTextAreaElement`*"]
205    pub fn read_only(this: &HtmlTextAreaElement) -> bool;
206    #[wasm_bindgen(method, setter, js_class = "HTMLTextAreaElement", js_name = "readOnly")]
207    #[doc = "Setter for the `readOnly` field of this object."]
208    #[doc = ""]
209    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLTextAreaElement/readOnly)"]
210    #[doc = ""]
211    #[doc = "*This API requires the following crate features to be activated: `HtmlTextAreaElement`*"]
212    pub fn set_read_only(this: &HtmlTextAreaElement, value: bool);
213    #[wasm_bindgen(method, getter, js_class = "HTMLTextAreaElement", js_name = "required")]
214    #[doc = "Getter for the `required` field of this object."]
215    #[doc = ""]
216    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLTextAreaElement/required)"]
217    #[doc = ""]
218    #[doc = "*This API requires the following crate features to be activated: `HtmlTextAreaElement`*"]
219    pub fn required(this: &HtmlTextAreaElement) -> bool;
220    #[wasm_bindgen(method, setter, js_class = "HTMLTextAreaElement", js_name = "required")]
221    #[doc = "Setter for the `required` field of this object."]
222    #[doc = ""]
223    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLTextAreaElement/required)"]
224    #[doc = ""]
225    #[doc = "*This API requires the following crate features to be activated: `HtmlTextAreaElement`*"]
226    pub fn set_required(this: &HtmlTextAreaElement, value: bool);
227    #[wasm_bindgen(method, getter, js_class = "HTMLTextAreaElement", js_name = "rows")]
228    #[doc = "Getter for the `rows` field of this object."]
229    #[doc = ""]
230    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLTextAreaElement/rows)"]
231    #[doc = ""]
232    #[doc = "*This API requires the following crate features to be activated: `HtmlTextAreaElement`*"]
233    pub fn rows(this: &HtmlTextAreaElement) -> u32;
234    #[wasm_bindgen(method, setter, js_class = "HTMLTextAreaElement", js_name = "rows")]
235    #[doc = "Setter for the `rows` field of this object."]
236    #[doc = ""]
237    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLTextAreaElement/rows)"]
238    #[doc = ""]
239    #[doc = "*This API requires the following crate features to be activated: `HtmlTextAreaElement`*"]
240    pub fn set_rows(this: &HtmlTextAreaElement, value: u32);
241    #[wasm_bindgen(method, getter, js_class = "HTMLTextAreaElement", js_name = "wrap")]
242    #[doc = "Getter for the `wrap` field of this object."]
243    #[doc = ""]
244    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLTextAreaElement/wrap)"]
245    #[doc = ""]
246    #[doc = "*This API requires the following crate features to be activated: `HtmlTextAreaElement`*"]
247    pub fn wrap(this: &HtmlTextAreaElement) -> ::alloc::string::String;
248    #[wasm_bindgen(method, setter, js_class = "HTMLTextAreaElement", js_name = "wrap")]
249    #[doc = "Setter for the `wrap` field of this object."]
250    #[doc = ""]
251    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLTextAreaElement/wrap)"]
252    #[doc = ""]
253    #[doc = "*This API requires the following crate features to be activated: `HtmlTextAreaElement`*"]
254    pub fn set_wrap(this: &HtmlTextAreaElement, value: &str);
255    #[wasm_bindgen(method, getter, js_class = "HTMLTextAreaElement", js_name = "type")]
256    #[doc = "Getter for the `type` field of this object."]
257    #[doc = ""]
258    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLTextAreaElement/type)"]
259    #[doc = ""]
260    #[doc = "*This API requires the following crate features to be activated: `HtmlTextAreaElement`*"]
261    pub fn type_(this: &HtmlTextAreaElement) -> ::alloc::string::String;
262    #[wasm_bindgen(
263        catch,
264        method,
265        getter,
266        js_class = "HTMLTextAreaElement",
267        js_name = "defaultValue"
268    )]
269    #[doc = "Getter for the `defaultValue` field of this object."]
270    #[doc = ""]
271    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLTextAreaElement/defaultValue)"]
272    #[doc = ""]
273    #[doc = "*This API requires the following crate features to be activated: `HtmlTextAreaElement`*"]
274    pub fn default_value(this: &HtmlTextAreaElement) -> Result<::alloc::string::String, JsValue>;
275    #[wasm_bindgen(
276        catch,
277        method,
278        setter,
279        js_class = "HTMLTextAreaElement",
280        js_name = "defaultValue"
281    )]
282    #[doc = "Setter for the `defaultValue` field of this object."]
283    #[doc = ""]
284    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLTextAreaElement/defaultValue)"]
285    #[doc = ""]
286    #[doc = "*This API requires the following crate features to be activated: `HtmlTextAreaElement`*"]
287    pub fn set_default_value(this: &HtmlTextAreaElement, value: &str) -> Result<(), JsValue>;
288    #[wasm_bindgen(method, getter, js_class = "HTMLTextAreaElement", js_name = "value")]
289    #[doc = "Getter for the `value` field of this object."]
290    #[doc = ""]
291    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLTextAreaElement/value)"]
292    #[doc = ""]
293    #[doc = "*This API requires the following crate features to be activated: `HtmlTextAreaElement`*"]
294    pub fn value(this: &HtmlTextAreaElement) -> ::alloc::string::String;
295    #[wasm_bindgen(method, setter, js_class = "HTMLTextAreaElement", js_name = "value")]
296    #[doc = "Setter for the `value` field of this object."]
297    #[doc = ""]
298    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLTextAreaElement/value)"]
299    #[doc = ""]
300    #[doc = "*This API requires the following crate features to be activated: `HtmlTextAreaElement`*"]
301    pub fn set_value(this: &HtmlTextAreaElement, value: &str);
302    #[wasm_bindgen(
303        method,
304        getter,
305        js_class = "HTMLTextAreaElement",
306        js_name = "textLength"
307    )]
308    #[doc = "Getter for the `textLength` field of this object."]
309    #[doc = ""]
310    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLTextAreaElement/textLength)"]
311    #[doc = ""]
312    #[doc = "*This API requires the following crate features to be activated: `HtmlTextAreaElement`*"]
313    pub fn text_length(this: &HtmlTextAreaElement) -> u32;
314    #[wasm_bindgen(
315        method,
316        getter,
317        js_class = "HTMLTextAreaElement",
318        js_name = "willValidate"
319    )]
320    #[doc = "Getter for the `willValidate` field of this object."]
321    #[doc = ""]
322    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLTextAreaElement/willValidate)"]
323    #[doc = ""]
324    #[doc = "*This API requires the following crate features to be activated: `HtmlTextAreaElement`*"]
325    pub fn will_validate(this: &HtmlTextAreaElement) -> bool;
326    #[cfg(feature = "ValidityState")]
327    #[wasm_bindgen(method, getter, js_class = "HTMLTextAreaElement", js_name = "validity")]
328    #[doc = "Getter for the `validity` field of this object."]
329    #[doc = ""]
330    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLTextAreaElement/validity)"]
331    #[doc = ""]
332    #[doc = "*This API requires the following crate features to be activated: `HtmlTextAreaElement`, `ValidityState`*"]
333    pub fn validity(this: &HtmlTextAreaElement) -> ValidityState;
334    #[wasm_bindgen(
335        catch,
336        method,
337        getter,
338        js_class = "HTMLTextAreaElement",
339        js_name = "validationMessage"
340    )]
341    #[doc = "Getter for the `validationMessage` field of this object."]
342    #[doc = ""]
343    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLTextAreaElement/validationMessage)"]
344    #[doc = ""]
345    #[doc = "*This API requires the following crate features to be activated: `HtmlTextAreaElement`*"]
346    pub fn validation_message(
347        this: &HtmlTextAreaElement,
348    ) -> Result<::alloc::string::String, JsValue>;
349    #[cfg(feature = "NodeList")]
350    #[wasm_bindgen(method, getter, js_class = "HTMLTextAreaElement", js_name = "labels")]
351    #[doc = "Getter for the `labels` field of this object."]
352    #[doc = ""]
353    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLTextAreaElement/labels)"]
354    #[doc = ""]
355    #[doc = "*This API requires the following crate features to be activated: `HtmlTextAreaElement`, `NodeList`*"]
356    pub fn labels(this: &HtmlTextAreaElement) -> NodeList;
357    #[wasm_bindgen(
358        catch,
359        method,
360        getter,
361        js_class = "HTMLTextAreaElement",
362        js_name = "selectionStart"
363    )]
364    #[doc = "Getter for the `selectionStart` field of this object."]
365    #[doc = ""]
366    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLTextAreaElement/selectionStart)"]
367    #[doc = ""]
368    #[doc = "*This API requires the following crate features to be activated: `HtmlTextAreaElement`*"]
369    pub fn selection_start(this: &HtmlTextAreaElement) -> Result<Option<u32>, JsValue>;
370    #[wasm_bindgen(
371        catch,
372        method,
373        setter,
374        js_class = "HTMLTextAreaElement",
375        js_name = "selectionStart"
376    )]
377    #[doc = "Setter for the `selectionStart` field of this object."]
378    #[doc = ""]
379    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLTextAreaElement/selectionStart)"]
380    #[doc = ""]
381    #[doc = "*This API requires the following crate features to be activated: `HtmlTextAreaElement`*"]
382    pub fn set_selection_start(
383        this: &HtmlTextAreaElement,
384        value: Option<u32>,
385    ) -> Result<(), JsValue>;
386    #[wasm_bindgen(
387        catch,
388        method,
389        getter,
390        js_class = "HTMLTextAreaElement",
391        js_name = "selectionEnd"
392    )]
393    #[doc = "Getter for the `selectionEnd` field of this object."]
394    #[doc = ""]
395    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLTextAreaElement/selectionEnd)"]
396    #[doc = ""]
397    #[doc = "*This API requires the following crate features to be activated: `HtmlTextAreaElement`*"]
398    pub fn selection_end(this: &HtmlTextAreaElement) -> Result<Option<u32>, JsValue>;
399    #[wasm_bindgen(
400        catch,
401        method,
402        setter,
403        js_class = "HTMLTextAreaElement",
404        js_name = "selectionEnd"
405    )]
406    #[doc = "Setter for the `selectionEnd` field of this object."]
407    #[doc = ""]
408    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLTextAreaElement/selectionEnd)"]
409    #[doc = ""]
410    #[doc = "*This API requires the following crate features to be activated: `HtmlTextAreaElement`*"]
411    pub fn set_selection_end(this: &HtmlTextAreaElement, value: Option<u32>)
412        -> Result<(), JsValue>;
413    #[wasm_bindgen(
414        catch,
415        method,
416        getter,
417        js_class = "HTMLTextAreaElement",
418        js_name = "selectionDirection"
419    )]
420    #[doc = "Getter for the `selectionDirection` field of this object."]
421    #[doc = ""]
422    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLTextAreaElement/selectionDirection)"]
423    #[doc = ""]
424    #[doc = "*This API requires the following crate features to be activated: `HtmlTextAreaElement`*"]
425    pub fn selection_direction(
426        this: &HtmlTextAreaElement,
427    ) -> Result<Option<::alloc::string::String>, JsValue>;
428    #[wasm_bindgen(
429        catch,
430        method,
431        setter,
432        js_class = "HTMLTextAreaElement",
433        js_name = "selectionDirection"
434    )]
435    #[doc = "Setter for the `selectionDirection` field of this object."]
436    #[doc = ""]
437    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLTextAreaElement/selectionDirection)"]
438    #[doc = ""]
439    #[doc = "*This API requires the following crate features to be activated: `HtmlTextAreaElement`*"]
440    pub fn set_selection_direction(
441        this: &HtmlTextAreaElement,
442        value: Option<&str>,
443    ) -> Result<(), JsValue>;
444    #[wasm_bindgen(method, js_class = "HTMLTextAreaElement", js_name = "checkValidity")]
445    #[doc = "The `checkValidity()` method."]
446    #[doc = ""]
447    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLTextAreaElement/checkValidity)"]
448    #[doc = ""]
449    #[doc = "*This API requires the following crate features to be activated: `HtmlTextAreaElement`*"]
450    pub fn check_validity(this: &HtmlTextAreaElement) -> bool;
451    #[wasm_bindgen(method, js_class = "HTMLTextAreaElement", js_name = "reportValidity")]
452    #[doc = "The `reportValidity()` method."]
453    #[doc = ""]
454    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLTextAreaElement/reportValidity)"]
455    #[doc = ""]
456    #[doc = "*This API requires the following crate features to be activated: `HtmlTextAreaElement`*"]
457    pub fn report_validity(this: &HtmlTextAreaElement) -> bool;
458    #[wasm_bindgen(method, js_class = "HTMLTextAreaElement")]
459    #[doc = "The `select()` method."]
460    #[doc = ""]
461    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLTextAreaElement/select)"]
462    #[doc = ""]
463    #[doc = "*This API requires the following crate features to be activated: `HtmlTextAreaElement`*"]
464    pub fn select(this: &HtmlTextAreaElement);
465    #[wasm_bindgen(
466        method,
467        js_class = "HTMLTextAreaElement",
468        js_name = "setCustomValidity"
469    )]
470    #[doc = "The `setCustomValidity()` method."]
471    #[doc = ""]
472    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLTextAreaElement/setCustomValidity)"]
473    #[doc = ""]
474    #[doc = "*This API requires the following crate features to be activated: `HtmlTextAreaElement`*"]
475    pub fn set_custom_validity(this: &HtmlTextAreaElement, error: &str);
476    #[wasm_bindgen(
477        catch,
478        method,
479        js_class = "HTMLTextAreaElement",
480        js_name = "setRangeText"
481    )]
482    #[doc = "The `setRangeText()` method."]
483    #[doc = ""]
484    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLTextAreaElement/setRangeText)"]
485    #[doc = ""]
486    #[doc = "*This API requires the following crate features to be activated: `HtmlTextAreaElement`*"]
487    pub fn set_range_text(this: &HtmlTextAreaElement, replacement: &str) -> Result<(), JsValue>;
488    #[wasm_bindgen(
489        catch,
490        method,
491        js_class = "HTMLTextAreaElement",
492        js_name = "setRangeText"
493    )]
494    #[doc = "The `setRangeText()` method."]
495    #[doc = ""]
496    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLTextAreaElement/setRangeText)"]
497    #[doc = ""]
498    #[doc = "*This API requires the following crate features to be activated: `HtmlTextAreaElement`*"]
499    pub fn set_range_text_with_start_and_end(
500        this: &HtmlTextAreaElement,
501        replacement: &str,
502        start: u32,
503        end: u32,
504    ) -> Result<(), JsValue>;
505    #[wasm_bindgen(
506        catch,
507        method,
508        js_class = "HTMLTextAreaElement",
509        js_name = "setRangeText"
510    )]
511    #[doc = "The `setRangeText()` method."]
512    #[doc = ""]
513    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLTextAreaElement/setRangeText)"]
514    #[doc = ""]
515    #[doc = "*This API requires the following crate features to be activated: `HtmlTextAreaElement`*"]
516    pub fn set_range_text_with_start_and_end_and_mode(
517        this: &HtmlTextAreaElement,
518        replacement: &str,
519        start: u32,
520        end: u32,
521        mode: &str,
522    ) -> Result<(), JsValue>;
523    #[wasm_bindgen(
524        catch,
525        method,
526        js_class = "HTMLTextAreaElement",
527        js_name = "setSelectionRange"
528    )]
529    #[doc = "The `setSelectionRange()` method."]
530    #[doc = ""]
531    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLTextAreaElement/setSelectionRange)"]
532    #[doc = ""]
533    #[doc = "*This API requires the following crate features to be activated: `HtmlTextAreaElement`*"]
534    pub fn set_selection_range(
535        this: &HtmlTextAreaElement,
536        start: u32,
537        end: u32,
538    ) -> Result<(), JsValue>;
539    #[wasm_bindgen(
540        catch,
541        method,
542        js_class = "HTMLTextAreaElement",
543        js_name = "setSelectionRange"
544    )]
545    #[doc = "The `setSelectionRange()` method."]
546    #[doc = ""]
547    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLTextAreaElement/setSelectionRange)"]
548    #[doc = ""]
549    #[doc = "*This API requires the following crate features to be activated: `HtmlTextAreaElement`*"]
550    pub fn set_selection_range_with_direction(
551        this: &HtmlTextAreaElement,
552        start: u32,
553        end: u32,
554        direction: &str,
555    ) -> Result<(), JsValue>;
556}