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