Skip to main content

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