1#![allow(unused_imports)]
2use super::*;
3use wasm_bindgen::prelude::*;
4#[wasm_bindgen]
5extern "C" {
6 # [wasm_bindgen (extends = Document , extends = Node , extends = EventTarget , extends = :: js_sys :: Object , js_name = HTMLDocument , typescript_type = "HTMLDocument")]
7 #[derive(Debug, Clone, PartialEq, Eq)]
8 #[doc = "The `HtmlDocument` class."]
9 #[doc = ""]
10 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLDocument)"]
11 #[doc = ""]
12 #[doc = "*This API requires the following crate features to be activated: `HtmlDocument`*"]
13 pub type HtmlDocument;
14 # [wasm_bindgen (structural , method , getter , js_class = "HTMLDocument" , js_name = domain)]
15 #[doc = "Getter for the `domain` field of this object."]
16 #[doc = ""]
17 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLDocument/domain)"]
18 #[doc = ""]
19 #[doc = "*This API requires the following crate features to be activated: `HtmlDocument`*"]
20 pub fn domain(this: &HtmlDocument) -> String;
21 # [wasm_bindgen (structural , method , setter , js_class = "HTMLDocument" , js_name = domain)]
22 #[doc = "Setter for the `domain` field of this object."]
23 #[doc = ""]
24 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLDocument/domain)"]
25 #[doc = ""]
26 #[doc = "*This API requires the following crate features to be activated: `HtmlDocument`*"]
27 pub fn set_domain(this: &HtmlDocument, value: &str);
28 # [wasm_bindgen (structural , catch , method , getter , js_class = "HTMLDocument" , js_name = cookie)]
29 #[doc = "Getter for the `cookie` field of this object."]
30 #[doc = ""]
31 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLDocument/cookie)"]
32 #[doc = ""]
33 #[doc = "*This API requires the following crate features to be activated: `HtmlDocument`*"]
34 pub fn cookie(this: &HtmlDocument) -> Result<String, JsValue>;
35 # [wasm_bindgen (structural , catch , method , setter , js_class = "HTMLDocument" , js_name = cookie)]
36 #[doc = "Setter for the `cookie` field of this object."]
37 #[doc = ""]
38 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLDocument/cookie)"]
39 #[doc = ""]
40 #[doc = "*This API requires the following crate features to be activated: `HtmlDocument`*"]
41 pub fn set_cookie(this: &HtmlDocument, value: &str) -> Result<(), JsValue>;
42 # [wasm_bindgen (structural , method , getter , js_class = "HTMLDocument" , js_name = designMode)]
43 #[doc = "Getter for the `designMode` field of this object."]
44 #[doc = ""]
45 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLDocument/designMode)"]
46 #[doc = ""]
47 #[doc = "*This API requires the following crate features to be activated: `HtmlDocument`*"]
48 pub fn design_mode(this: &HtmlDocument) -> String;
49 # [wasm_bindgen (structural , method , setter , js_class = "HTMLDocument" , js_name = designMode)]
50 #[doc = "Setter for the `designMode` field of this object."]
51 #[doc = ""]
52 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLDocument/designMode)"]
53 #[doc = ""]
54 #[doc = "*This API requires the following crate features to be activated: `HtmlDocument`*"]
55 pub fn set_design_mode(this: &HtmlDocument, value: &str);
56 # [wasm_bindgen (structural , method , getter , js_class = "HTMLDocument" , js_name = fgColor)]
57 #[doc = "Getter for the `fgColor` field of this object."]
58 #[doc = ""]
59 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLDocument/fgColor)"]
60 #[doc = ""]
61 #[doc = "*This API requires the following crate features to be activated: `HtmlDocument`*"]
62 pub fn fg_color(this: &HtmlDocument) -> String;
63 # [wasm_bindgen (structural , method , setter , js_class = "HTMLDocument" , js_name = fgColor)]
64 #[doc = "Setter for the `fgColor` field of this object."]
65 #[doc = ""]
66 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLDocument/fgColor)"]
67 #[doc = ""]
68 #[doc = "*This API requires the following crate features to be activated: `HtmlDocument`*"]
69 pub fn set_fg_color(this: &HtmlDocument, value: &str);
70 # [wasm_bindgen (structural , method , getter , js_class = "HTMLDocument" , js_name = linkColor)]
71 #[doc = "Getter for the `linkColor` field of this object."]
72 #[doc = ""]
73 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLDocument/linkColor)"]
74 #[doc = ""]
75 #[doc = "*This API requires the following crate features to be activated: `HtmlDocument`*"]
76 pub fn link_color(this: &HtmlDocument) -> String;
77 # [wasm_bindgen (structural , method , setter , js_class = "HTMLDocument" , js_name = linkColor)]
78 #[doc = "Setter for the `linkColor` field of this object."]
79 #[doc = ""]
80 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLDocument/linkColor)"]
81 #[doc = ""]
82 #[doc = "*This API requires the following crate features to be activated: `HtmlDocument`*"]
83 pub fn set_link_color(this: &HtmlDocument, value: &str);
84 # [wasm_bindgen (structural , method , getter , js_class = "HTMLDocument" , js_name = vlinkColor)]
85 #[doc = "Getter for the `vlinkColor` field of this object."]
86 #[doc = ""]
87 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLDocument/vlinkColor)"]
88 #[doc = ""]
89 #[doc = "*This API requires the following crate features to be activated: `HtmlDocument`*"]
90 pub fn vlink_color(this: &HtmlDocument) -> String;
91 # [wasm_bindgen (structural , method , setter , js_class = "HTMLDocument" , js_name = vlinkColor)]
92 #[doc = "Setter for the `vlinkColor` field of this object."]
93 #[doc = ""]
94 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLDocument/vlinkColor)"]
95 #[doc = ""]
96 #[doc = "*This API requires the following crate features to be activated: `HtmlDocument`*"]
97 pub fn set_vlink_color(this: &HtmlDocument, value: &str);
98 # [wasm_bindgen (structural , method , getter , js_class = "HTMLDocument" , js_name = alinkColor)]
99 #[doc = "Getter for the `alinkColor` field of this object."]
100 #[doc = ""]
101 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLDocument/alinkColor)"]
102 #[doc = ""]
103 #[doc = "*This API requires the following crate features to be activated: `HtmlDocument`*"]
104 pub fn alink_color(this: &HtmlDocument) -> String;
105 # [wasm_bindgen (structural , method , setter , js_class = "HTMLDocument" , js_name = alinkColor)]
106 #[doc = "Setter for the `alinkColor` field of this object."]
107 #[doc = ""]
108 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLDocument/alinkColor)"]
109 #[doc = ""]
110 #[doc = "*This API requires the following crate features to be activated: `HtmlDocument`*"]
111 pub fn set_alink_color(this: &HtmlDocument, value: &str);
112 # [wasm_bindgen (structural , method , getter , js_class = "HTMLDocument" , js_name = bgColor)]
113 #[doc = "Getter for the `bgColor` field of this object."]
114 #[doc = ""]
115 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLDocument/bgColor)"]
116 #[doc = ""]
117 #[doc = "*This API requires the following crate features to be activated: `HtmlDocument`*"]
118 pub fn bg_color(this: &HtmlDocument) -> String;
119 # [wasm_bindgen (structural , method , setter , js_class = "HTMLDocument" , js_name = bgColor)]
120 #[doc = "Setter for the `bgColor` field of this object."]
121 #[doc = ""]
122 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLDocument/bgColor)"]
123 #[doc = ""]
124 #[doc = "*This API requires the following crate features to be activated: `HtmlDocument`*"]
125 pub fn set_bg_color(this: &HtmlDocument, value: &str);
126 #[cfg(feature = "HtmlAllCollection")]
127 # [wasm_bindgen (structural , method , getter , js_class = "HTMLDocument" , js_name = all)]
128 #[doc = "Getter for the `all` field of this object."]
129 #[doc = ""]
130 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLDocument/all)"]
131 #[doc = ""]
132 #[doc = "*This API requires the following crate features to be activated: `HtmlAllCollection`, `HtmlDocument`*"]
133 pub fn all(this: &HtmlDocument) -> HtmlAllCollection;
134 # [wasm_bindgen (method , structural , js_class = "HTMLDocument" , js_name = captureEvents)]
135 #[doc = "The `captureEvents()` method."]
136 #[doc = ""]
137 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLDocument/captureEvents)"]
138 #[doc = ""]
139 #[doc = "*This API requires the following crate features to be activated: `HtmlDocument`*"]
140 pub fn capture_events(this: &HtmlDocument);
141 # [wasm_bindgen (method , structural , js_class = "HTMLDocument" , js_name = clear)]
142 #[doc = "The `clear()` method."]
143 #[doc = ""]
144 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLDocument/clear)"]
145 #[doc = ""]
146 #[doc = "*This API requires the following crate features to be activated: `HtmlDocument`*"]
147 pub fn clear(this: &HtmlDocument);
148 # [wasm_bindgen (catch , method , structural , js_class = "HTMLDocument" , js_name = close)]
149 #[doc = "The `close()` method."]
150 #[doc = ""]
151 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLDocument/close)"]
152 #[doc = ""]
153 #[doc = "*This API requires the following crate features to be activated: `HtmlDocument`*"]
154 pub fn close(this: &HtmlDocument) -> Result<(), JsValue>;
155 # [wasm_bindgen (catch , method , structural , js_class = "HTMLDocument" , js_name = execCommand)]
156 #[doc = "The `execCommand()` method."]
157 #[doc = ""]
158 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLDocument/execCommand)"]
159 #[doc = ""]
160 #[doc = "*This API requires the following crate features to be activated: `HtmlDocument`*"]
161 pub fn exec_command(this: &HtmlDocument, command_id: &str) -> Result<bool, JsValue>;
162 # [wasm_bindgen (catch , method , structural , js_class = "HTMLDocument" , js_name = execCommand)]
163 #[doc = "The `execCommand()` method."]
164 #[doc = ""]
165 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLDocument/execCommand)"]
166 #[doc = ""]
167 #[doc = "*This API requires the following crate features to be activated: `HtmlDocument`*"]
168 pub fn exec_command_with_show_ui(
169 this: &HtmlDocument,
170 command_id: &str,
171 show_ui: bool,
172 ) -> Result<bool, JsValue>;
173 # [wasm_bindgen (catch , method , structural , js_class = "HTMLDocument" , js_name = execCommand)]
174 #[doc = "The `execCommand()` method."]
175 #[doc = ""]
176 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLDocument/execCommand)"]
177 #[doc = ""]
178 #[doc = "*This API requires the following crate features to be activated: `HtmlDocument`*"]
179 pub fn exec_command_with_show_ui_and_value(
180 this: &HtmlDocument,
181 command_id: &str,
182 show_ui: bool,
183 value: &str,
184 ) -> Result<bool, JsValue>;
185 # [wasm_bindgen (catch , method , structural , js_class = "HTMLDocument" , js_name = open)]
186 #[doc = "The `open()` method."]
187 #[doc = ""]
188 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLDocument/open)"]
189 #[doc = ""]
190 #[doc = "*This API requires the following crate features to be activated: `HtmlDocument`*"]
191 pub fn open(this: &HtmlDocument) -> Result<Document, JsValue>;
192 # [wasm_bindgen (catch , method , structural , js_class = "HTMLDocument" , js_name = open)]
193 #[doc = "The `open()` method."]
194 #[doc = ""]
195 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLDocument/open)"]
196 #[doc = ""]
197 #[doc = "*This API requires the following crate features to be activated: `HtmlDocument`*"]
198 pub fn open_with_type(this: &HtmlDocument, type_: &str) -> Result<Document, JsValue>;
199 # [wasm_bindgen (catch , method , structural , js_class = "HTMLDocument" , js_name = open)]
200 #[doc = "The `open()` method."]
201 #[doc = ""]
202 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLDocument/open)"]
203 #[doc = ""]
204 #[doc = "*This API requires the following crate features to be activated: `HtmlDocument`*"]
205 pub fn open_with_type_and_replace(
206 this: &HtmlDocument,
207 type_: &str,
208 replace: &str,
209 ) -> Result<Document, JsValue>;
210 #[cfg(feature = "Window")]
211 # [wasm_bindgen (catch , method , structural , js_class = "HTMLDocument" , js_name = open)]
212 #[doc = "The `open()` method."]
213 #[doc = ""]
214 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLDocument/open)"]
215 #[doc = ""]
216 #[doc = "*This API requires the following crate features to be activated: `HtmlDocument`, `Window`*"]
217 pub fn open_with_url_and_name_and_features(
218 this: &HtmlDocument,
219 url: &str,
220 name: &str,
221 features: &str,
222 ) -> Result<Option<Window>, JsValue>;
223 #[cfg(feature = "Window")]
224 # [wasm_bindgen (catch , method , structural , js_class = "HTMLDocument" , js_name = open)]
225 #[doc = "The `open()` method."]
226 #[doc = ""]
227 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLDocument/open)"]
228 #[doc = ""]
229 #[doc = "*This API requires the following crate features to be activated: `HtmlDocument`, `Window`*"]
230 pub fn open_with_url_and_name_and_features_and_replace(
231 this: &HtmlDocument,
232 url: &str,
233 name: &str,
234 features: &str,
235 replace: bool,
236 ) -> Result<Option<Window>, JsValue>;
237 # [wasm_bindgen (catch , method , structural , js_class = "HTMLDocument" , js_name = queryCommandEnabled)]
238 #[doc = "The `queryCommandEnabled()` method."]
239 #[doc = ""]
240 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLDocument/queryCommandEnabled)"]
241 #[doc = ""]
242 #[doc = "*This API requires the following crate features to be activated: `HtmlDocument`*"]
243 pub fn query_command_enabled(this: &HtmlDocument, command_id: &str) -> Result<bool, JsValue>;
244 # [wasm_bindgen (catch , method , structural , js_class = "HTMLDocument" , js_name = queryCommandIndeterm)]
245 #[doc = "The `queryCommandIndeterm()` method."]
246 #[doc = ""]
247 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLDocument/queryCommandIndeterm)"]
248 #[doc = ""]
249 #[doc = "*This API requires the following crate features to be activated: `HtmlDocument`*"]
250 pub fn query_command_indeterm(this: &HtmlDocument, command_id: &str) -> Result<bool, JsValue>;
251 # [wasm_bindgen (catch , method , structural , js_class = "HTMLDocument" , js_name = queryCommandState)]
252 #[doc = "The `queryCommandState()` method."]
253 #[doc = ""]
254 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLDocument/queryCommandState)"]
255 #[doc = ""]
256 #[doc = "*This API requires the following crate features to be activated: `HtmlDocument`*"]
257 pub fn query_command_state(this: &HtmlDocument, command_id: &str) -> Result<bool, JsValue>;
258 # [wasm_bindgen (method , structural , js_class = "HTMLDocument" , js_name = queryCommandSupported)]
259 #[doc = "The `queryCommandSupported()` method."]
260 #[doc = ""]
261 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLDocument/queryCommandSupported)"]
262 #[doc = ""]
263 #[doc = "*This API requires the following crate features to be activated: `HtmlDocument`*"]
264 pub fn query_command_supported(this: &HtmlDocument, command_id: &str) -> bool;
265 # [wasm_bindgen (catch , method , structural , js_class = "HTMLDocument" , js_name = queryCommandValue)]
266 #[doc = "The `queryCommandValue()` method."]
267 #[doc = ""]
268 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLDocument/queryCommandValue)"]
269 #[doc = ""]
270 #[doc = "*This API requires the following crate features to be activated: `HtmlDocument`*"]
271 pub fn query_command_value(this: &HtmlDocument, command_id: &str) -> Result<String, JsValue>;
272 # [wasm_bindgen (method , structural , js_class = "HTMLDocument" , js_name = releaseEvents)]
273 #[doc = "The `releaseEvents()` method."]
274 #[doc = ""]
275 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLDocument/releaseEvents)"]
276 #[doc = ""]
277 #[doc = "*This API requires the following crate features to be activated: `HtmlDocument`*"]
278 pub fn release_events(this: &HtmlDocument);
279 # [wasm_bindgen (catch , method , structural , variadic , js_class = "HTMLDocument" , js_name = write)]
280 #[doc = "The `write()` method."]
281 #[doc = ""]
282 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLDocument/write)"]
283 #[doc = ""]
284 #[doc = "*This API requires the following crate features to be activated: `HtmlDocument`*"]
285 pub fn write(this: &HtmlDocument, text: &::js_sys::Array) -> Result<(), JsValue>;
286 # [wasm_bindgen (catch , method , structural , js_class = "HTMLDocument" , js_name = write)]
287 #[doc = "The `write()` method."]
288 #[doc = ""]
289 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLDocument/write)"]
290 #[doc = ""]
291 #[doc = "*This API requires the following crate features to be activated: `HtmlDocument`*"]
292 pub fn write_0(this: &HtmlDocument) -> Result<(), JsValue>;
293 # [wasm_bindgen (catch , method , structural , js_class = "HTMLDocument" , js_name = write)]
294 #[doc = "The `write()` method."]
295 #[doc = ""]
296 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLDocument/write)"]
297 #[doc = ""]
298 #[doc = "*This API requires the following crate features to be activated: `HtmlDocument`*"]
299 pub fn write_1(this: &HtmlDocument, text_1: &str) -> Result<(), JsValue>;
300 # [wasm_bindgen (catch , method , structural , js_class = "HTMLDocument" , js_name = write)]
301 #[doc = "The `write()` method."]
302 #[doc = ""]
303 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLDocument/write)"]
304 #[doc = ""]
305 #[doc = "*This API requires the following crate features to be activated: `HtmlDocument`*"]
306 pub fn write_2(this: &HtmlDocument, text_1: &str, text_2: &str) -> Result<(), JsValue>;
307 # [wasm_bindgen (catch , method , structural , js_class = "HTMLDocument" , js_name = write)]
308 #[doc = "The `write()` method."]
309 #[doc = ""]
310 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLDocument/write)"]
311 #[doc = ""]
312 #[doc = "*This API requires the following crate features to be activated: `HtmlDocument`*"]
313 pub fn write_3(
314 this: &HtmlDocument,
315 text_1: &str,
316 text_2: &str,
317 text_3: &str,
318 ) -> Result<(), JsValue>;
319 # [wasm_bindgen (catch , method , structural , js_class = "HTMLDocument" , js_name = write)]
320 #[doc = "The `write()` method."]
321 #[doc = ""]
322 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLDocument/write)"]
323 #[doc = ""]
324 #[doc = "*This API requires the following crate features to be activated: `HtmlDocument`*"]
325 pub fn write_4(
326 this: &HtmlDocument,
327 text_1: &str,
328 text_2: &str,
329 text_3: &str,
330 text_4: &str,
331 ) -> Result<(), JsValue>;
332 # [wasm_bindgen (catch , method , structural , js_class = "HTMLDocument" , js_name = write)]
333 #[doc = "The `write()` method."]
334 #[doc = ""]
335 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLDocument/write)"]
336 #[doc = ""]
337 #[doc = "*This API requires the following crate features to be activated: `HtmlDocument`*"]
338 pub fn write_5(
339 this: &HtmlDocument,
340 text_1: &str,
341 text_2: &str,
342 text_3: &str,
343 text_4: &str,
344 text_5: &str,
345 ) -> Result<(), JsValue>;
346 # [wasm_bindgen (catch , method , structural , js_class = "HTMLDocument" , js_name = write)]
347 #[doc = "The `write()` method."]
348 #[doc = ""]
349 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLDocument/write)"]
350 #[doc = ""]
351 #[doc = "*This API requires the following crate features to be activated: `HtmlDocument`*"]
352 pub fn write_6(
353 this: &HtmlDocument,
354 text_1: &str,
355 text_2: &str,
356 text_3: &str,
357 text_4: &str,
358 text_5: &str,
359 text_6: &str,
360 ) -> Result<(), JsValue>;
361 # [wasm_bindgen (catch , method , structural , js_class = "HTMLDocument" , js_name = write)]
362 #[doc = "The `write()` method."]
363 #[doc = ""]
364 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLDocument/write)"]
365 #[doc = ""]
366 #[doc = "*This API requires the following crate features to be activated: `HtmlDocument`*"]
367 pub fn write_7(
368 this: &HtmlDocument,
369 text_1: &str,
370 text_2: &str,
371 text_3: &str,
372 text_4: &str,
373 text_5: &str,
374 text_6: &str,
375 text_7: &str,
376 ) -> Result<(), JsValue>;
377 # [wasm_bindgen (catch , method , structural , variadic , js_class = "HTMLDocument" , js_name = writeln)]
378 #[doc = "The `writeln()` method."]
379 #[doc = ""]
380 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLDocument/writeln)"]
381 #[doc = ""]
382 #[doc = "*This API requires the following crate features to be activated: `HtmlDocument`*"]
383 pub fn writeln(this: &HtmlDocument, text: &::js_sys::Array) -> Result<(), JsValue>;
384 # [wasm_bindgen (catch , method , structural , js_class = "HTMLDocument" , js_name = writeln)]
385 #[doc = "The `writeln()` method."]
386 #[doc = ""]
387 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLDocument/writeln)"]
388 #[doc = ""]
389 #[doc = "*This API requires the following crate features to be activated: `HtmlDocument`*"]
390 pub fn writeln_0(this: &HtmlDocument) -> Result<(), JsValue>;
391 # [wasm_bindgen (catch , method , structural , js_class = "HTMLDocument" , js_name = writeln)]
392 #[doc = "The `writeln()` method."]
393 #[doc = ""]
394 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLDocument/writeln)"]
395 #[doc = ""]
396 #[doc = "*This API requires the following crate features to be activated: `HtmlDocument`*"]
397 pub fn writeln_1(this: &HtmlDocument, text_1: &str) -> Result<(), JsValue>;
398 # [wasm_bindgen (catch , method , structural , js_class = "HTMLDocument" , js_name = writeln)]
399 #[doc = "The `writeln()` method."]
400 #[doc = ""]
401 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLDocument/writeln)"]
402 #[doc = ""]
403 #[doc = "*This API requires the following crate features to be activated: `HtmlDocument`*"]
404 pub fn writeln_2(this: &HtmlDocument, text_1: &str, text_2: &str) -> Result<(), JsValue>;
405 # [wasm_bindgen (catch , method , structural , js_class = "HTMLDocument" , js_name = writeln)]
406 #[doc = "The `writeln()` method."]
407 #[doc = ""]
408 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLDocument/writeln)"]
409 #[doc = ""]
410 #[doc = "*This API requires the following crate features to be activated: `HtmlDocument`*"]
411 pub fn writeln_3(
412 this: &HtmlDocument,
413 text_1: &str,
414 text_2: &str,
415 text_3: &str,
416 ) -> Result<(), JsValue>;
417 # [wasm_bindgen (catch , method , structural , js_class = "HTMLDocument" , js_name = writeln)]
418 #[doc = "The `writeln()` method."]
419 #[doc = ""]
420 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLDocument/writeln)"]
421 #[doc = ""]
422 #[doc = "*This API requires the following crate features to be activated: `HtmlDocument`*"]
423 pub fn writeln_4(
424 this: &HtmlDocument,
425 text_1: &str,
426 text_2: &str,
427 text_3: &str,
428 text_4: &str,
429 ) -> Result<(), JsValue>;
430 # [wasm_bindgen (catch , method , structural , js_class = "HTMLDocument" , js_name = writeln)]
431 #[doc = "The `writeln()` method."]
432 #[doc = ""]
433 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLDocument/writeln)"]
434 #[doc = ""]
435 #[doc = "*This API requires the following crate features to be activated: `HtmlDocument`*"]
436 pub fn writeln_5(
437 this: &HtmlDocument,
438 text_1: &str,
439 text_2: &str,
440 text_3: &str,
441 text_4: &str,
442 text_5: &str,
443 ) -> Result<(), JsValue>;
444 # [wasm_bindgen (catch , method , structural , js_class = "HTMLDocument" , js_name = writeln)]
445 #[doc = "The `writeln()` method."]
446 #[doc = ""]
447 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLDocument/writeln)"]
448 #[doc = ""]
449 #[doc = "*This API requires the following crate features to be activated: `HtmlDocument`*"]
450 pub fn writeln_6(
451 this: &HtmlDocument,
452 text_1: &str,
453 text_2: &str,
454 text_3: &str,
455 text_4: &str,
456 text_5: &str,
457 text_6: &str,
458 ) -> Result<(), JsValue>;
459 # [wasm_bindgen (catch , method , structural , js_class = "HTMLDocument" , js_name = writeln)]
460 #[doc = "The `writeln()` method."]
461 #[doc = ""]
462 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLDocument/writeln)"]
463 #[doc = ""]
464 #[doc = "*This API requires the following crate features to be activated: `HtmlDocument`*"]
465 pub fn writeln_7(
466 this: &HtmlDocument,
467 text_1: &str,
468 text_2: &str,
469 text_3: &str,
470 text_4: &str,
471 text_5: &str,
472 text_6: &str,
473 text_7: &str,
474 ) -> Result<(), JsValue>;
475 #[wasm_bindgen(catch, method, structural, js_class = "HTMLDocument", indexing_getter)]
476 #[doc = "Indexing getter."]
477 #[doc = ""]
478 #[doc = ""]
479 #[doc = ""]
480 #[doc = "*This API requires the following crate features to be activated: `HtmlDocument`*"]
481 pub fn get(this: &HtmlDocument, name: &str) -> Result<::js_sys::Object, JsValue>;
482}