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