Skip to main content

web_sys/features/
gen_Document.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 = "Node",
9        extends = "EventTarget",
10        extends = "::js_sys::Object",
11        js_name = "Document",
12        typescript_type = "Document"
13    )]
14    #[derive(Debug, Clone, PartialEq, Eq)]
15    #[doc = "The `Document` class."]
16    #[doc = ""]
17    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document)"]
18    #[doc = ""]
19    #[doc = "*This API requires the following crate features to be activated: `Document`*"]
20    pub type Document;
21    #[cfg(feature = "DomImplementation")]
22    #[wasm_bindgen(
23        catch,
24        method,
25        getter,
26        js_class = "Document",
27        js_name = "implementation"
28    )]
29    #[doc = "Getter for the `implementation` field of this object."]
30    #[doc = ""]
31    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/implementation)"]
32    #[doc = ""]
33    #[doc = "*This API requires the following crate features to be activated: `Document`, `DomImplementation`*"]
34    pub fn implementation(this: &Document) -> Result<DomImplementation, JsValue>;
35    #[wasm_bindgen(catch, method, getter, js_class = "Document", js_name = "URL")]
36    #[doc = "Getter for the `URL` field of this object."]
37    #[doc = ""]
38    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/URL)"]
39    #[doc = ""]
40    #[doc = "*This API requires the following crate features to be activated: `Document`*"]
41    pub fn url(this: &Document) -> Result<::alloc::string::String, JsValue>;
42    #[wasm_bindgen(catch, method, getter, js_class = "Document", js_name = "documentURI")]
43    #[doc = "Getter for the `documentURI` field of this object."]
44    #[doc = ""]
45    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/documentURI)"]
46    #[doc = ""]
47    #[doc = "*This API requires the following crate features to be activated: `Document`*"]
48    pub fn document_uri(this: &Document) -> Result<::alloc::string::String, JsValue>;
49    #[wasm_bindgen(method, getter, js_class = "Document", js_name = "compatMode")]
50    #[doc = "Getter for the `compatMode` field of this object."]
51    #[doc = ""]
52    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/compatMode)"]
53    #[doc = ""]
54    #[doc = "*This API requires the following crate features to be activated: `Document`*"]
55    pub fn compat_mode(this: &Document) -> ::alloc::string::String;
56    #[wasm_bindgen(method, getter, js_class = "Document", js_name = "characterSet")]
57    #[doc = "Getter for the `characterSet` field of this object."]
58    #[doc = ""]
59    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/characterSet)"]
60    #[doc = ""]
61    #[doc = "*This API requires the following crate features to be activated: `Document`*"]
62    pub fn character_set(this: &Document) -> ::alloc::string::String;
63    #[wasm_bindgen(method, getter, js_class = "Document", js_name = "charset")]
64    #[doc = "Getter for the `charset` field of this object."]
65    #[doc = ""]
66    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/charset)"]
67    #[doc = ""]
68    #[doc = "*This API requires the following crate features to be activated: `Document`*"]
69    pub fn charset(this: &Document) -> ::alloc::string::String;
70    #[wasm_bindgen(method, getter, js_class = "Document", js_name = "inputEncoding")]
71    #[doc = "Getter for the `inputEncoding` field of this object."]
72    #[doc = ""]
73    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/inputEncoding)"]
74    #[doc = ""]
75    #[doc = "*This API requires the following crate features to be activated: `Document`*"]
76    pub fn input_encoding(this: &Document) -> ::alloc::string::String;
77    #[wasm_bindgen(method, getter, js_class = "Document", js_name = "contentType")]
78    #[doc = "Getter for the `contentType` field of this object."]
79    #[doc = ""]
80    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/contentType)"]
81    #[doc = ""]
82    #[doc = "*This API requires the following crate features to be activated: `Document`*"]
83    pub fn content_type(this: &Document) -> ::alloc::string::String;
84    #[cfg(feature = "DocumentType")]
85    #[wasm_bindgen(method, getter, js_class = "Document", js_name = "doctype")]
86    #[doc = "Getter for the `doctype` field of this object."]
87    #[doc = ""]
88    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/doctype)"]
89    #[doc = ""]
90    #[doc = "*This API requires the following crate features to be activated: `Document`, `DocumentType`*"]
91    pub fn doctype(this: &Document) -> Option<DocumentType>;
92    #[cfg(feature = "Element")]
93    #[wasm_bindgen(method, getter, js_class = "Document", js_name = "documentElement")]
94    #[doc = "Getter for the `documentElement` field of this object."]
95    #[doc = ""]
96    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/documentElement)"]
97    #[doc = ""]
98    #[doc = "*This API requires the following crate features to be activated: `Document`, `Element`*"]
99    pub fn document_element(this: &Document) -> Option<Element>;
100    #[cfg(feature = "Location")]
101    #[wasm_bindgen(method, getter, js_class = "Document", js_name = "location")]
102    #[doc = "Getter for the `location` field of this object."]
103    #[doc = ""]
104    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/location)"]
105    #[doc = ""]
106    #[doc = "*This API requires the following crate features to be activated: `Document`, `Location`*"]
107    pub fn location(this: &Document) -> Option<Location>;
108    #[wasm_bindgen(method, getter, js_class = "Document", js_name = "referrer")]
109    #[doc = "Getter for the `referrer` field of this object."]
110    #[doc = ""]
111    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/referrer)"]
112    #[doc = ""]
113    #[doc = "*This API requires the following crate features to be activated: `Document`*"]
114    pub fn referrer(this: &Document) -> ::alloc::string::String;
115    #[wasm_bindgen(method, getter, js_class = "Document", js_name = "lastModified")]
116    #[doc = "Getter for the `lastModified` field of this object."]
117    #[doc = ""]
118    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/lastModified)"]
119    #[doc = ""]
120    #[doc = "*This API requires the following crate features to be activated: `Document`*"]
121    pub fn last_modified(this: &Document) -> ::alloc::string::String;
122    #[wasm_bindgen(method, getter, js_class = "Document", js_name = "readyState")]
123    #[doc = "Getter for the `readyState` field of this object."]
124    #[doc = ""]
125    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/readyState)"]
126    #[doc = ""]
127    #[doc = "*This API requires the following crate features to be activated: `Document`*"]
128    pub fn ready_state(this: &Document) -> ::alloc::string::String;
129    #[wasm_bindgen(method, getter, js_class = "Document", js_name = "title")]
130    #[doc = "Getter for the `title` field of this object."]
131    #[doc = ""]
132    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/title)"]
133    #[doc = ""]
134    #[doc = "*This API requires the following crate features to be activated: `Document`*"]
135    pub fn title(this: &Document) -> ::alloc::string::String;
136    #[wasm_bindgen(method, setter, js_class = "Document", js_name = "title")]
137    #[doc = "Setter for the `title` field of this object."]
138    #[doc = ""]
139    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/title)"]
140    #[doc = ""]
141    #[doc = "*This API requires the following crate features to be activated: `Document`*"]
142    pub fn set_title(this: &Document, value: &str);
143    #[wasm_bindgen(method, getter, js_class = "Document", js_name = "dir")]
144    #[doc = "Getter for the `dir` field of this object."]
145    #[doc = ""]
146    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/dir)"]
147    #[doc = ""]
148    #[doc = "*This API requires the following crate features to be activated: `Document`*"]
149    pub fn dir(this: &Document) -> ::alloc::string::String;
150    #[wasm_bindgen(method, setter, js_class = "Document", js_name = "dir")]
151    #[doc = "Setter for the `dir` field of this object."]
152    #[doc = ""]
153    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/dir)"]
154    #[doc = ""]
155    #[doc = "*This API requires the following crate features to be activated: `Document`*"]
156    pub fn set_dir(this: &Document, value: &str);
157    #[cfg(feature = "HtmlElement")]
158    #[wasm_bindgen(method, getter, js_class = "Document", js_name = "body")]
159    #[doc = "Getter for the `body` field of this object."]
160    #[doc = ""]
161    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/body)"]
162    #[doc = ""]
163    #[doc = "*This API requires the following crate features to be activated: `Document`, `HtmlElement`*"]
164    pub fn body(this: &Document) -> Option<HtmlElement>;
165    #[cfg(feature = "HtmlElement")]
166    #[wasm_bindgen(method, setter, js_class = "Document", js_name = "body")]
167    #[doc = "Setter for the `body` field of this object."]
168    #[doc = ""]
169    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/body)"]
170    #[doc = ""]
171    #[doc = "*This API requires the following crate features to be activated: `Document`, `HtmlElement`*"]
172    pub fn set_body(this: &Document, value: Option<&HtmlElement>);
173    #[cfg(feature = "HtmlHeadElement")]
174    #[wasm_bindgen(method, getter, js_class = "Document", js_name = "head")]
175    #[doc = "Getter for the `head` field of this object."]
176    #[doc = ""]
177    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/head)"]
178    #[doc = ""]
179    #[doc = "*This API requires the following crate features to be activated: `Document`, `HtmlHeadElement`*"]
180    pub fn head(this: &Document) -> Option<HtmlHeadElement>;
181    #[cfg(feature = "HtmlCollection")]
182    #[wasm_bindgen(method, getter, js_class = "Document", js_name = "images")]
183    #[doc = "Getter for the `images` field of this object."]
184    #[doc = ""]
185    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/images)"]
186    #[doc = ""]
187    #[doc = "*This API requires the following crate features to be activated: `Document`, `HtmlCollection`*"]
188    pub fn images(this: &Document) -> HtmlCollection;
189    #[cfg(feature = "HtmlCollection")]
190    #[wasm_bindgen(method, getter, js_class = "Document", js_name = "embeds")]
191    #[doc = "Getter for the `embeds` field of this object."]
192    #[doc = ""]
193    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/embeds)"]
194    #[doc = ""]
195    #[doc = "*This API requires the following crate features to be activated: `Document`, `HtmlCollection`*"]
196    pub fn embeds(this: &Document) -> HtmlCollection;
197    #[cfg(feature = "HtmlCollection")]
198    #[wasm_bindgen(method, getter, js_class = "Document", js_name = "plugins")]
199    #[doc = "Getter for the `plugins` field of this object."]
200    #[doc = ""]
201    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/plugins)"]
202    #[doc = ""]
203    #[doc = "*This API requires the following crate features to be activated: `Document`, `HtmlCollection`*"]
204    pub fn plugins(this: &Document) -> HtmlCollection;
205    #[cfg(feature = "HtmlCollection")]
206    #[wasm_bindgen(method, getter, js_class = "Document", js_name = "links")]
207    #[doc = "Getter for the `links` field of this object."]
208    #[doc = ""]
209    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/links)"]
210    #[doc = ""]
211    #[doc = "*This API requires the following crate features to be activated: `Document`, `HtmlCollection`*"]
212    pub fn links(this: &Document) -> HtmlCollection;
213    #[cfg(feature = "HtmlCollection")]
214    #[wasm_bindgen(method, getter, js_class = "Document", js_name = "forms")]
215    #[doc = "Getter for the `forms` field of this object."]
216    #[doc = ""]
217    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/forms)"]
218    #[doc = ""]
219    #[doc = "*This API requires the following crate features to be activated: `Document`, `HtmlCollection`*"]
220    pub fn forms(this: &Document) -> HtmlCollection;
221    #[cfg(feature = "HtmlCollection")]
222    #[wasm_bindgen(method, getter, js_class = "Document", js_name = "scripts")]
223    #[doc = "Getter for the `scripts` field of this object."]
224    #[doc = ""]
225    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/scripts)"]
226    #[doc = ""]
227    #[doc = "*This API requires the following crate features to be activated: `Document`, `HtmlCollection`*"]
228    pub fn scripts(this: &Document) -> HtmlCollection;
229    #[cfg(feature = "Window")]
230    #[wasm_bindgen(method, getter, js_class = "Document", js_name = "defaultView")]
231    #[doc = "Getter for the `defaultView` field of this object."]
232    #[doc = ""]
233    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/defaultView)"]
234    #[doc = ""]
235    #[doc = "*This API requires the following crate features to be activated: `Document`, `Window`*"]
236    pub fn default_view(this: &Document) -> Option<Window>;
237    #[wasm_bindgen(method, getter, js_class = "Document", js_name = "onreadystatechange")]
238    #[doc = "Getter for the `onreadystatechange` field of this object."]
239    #[doc = ""]
240    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/onreadystatechange)"]
241    #[doc = ""]
242    #[doc = "*This API requires the following crate features to be activated: `Document`*"]
243    pub fn onreadystatechange(this: &Document) -> Option<::js_sys::Function>;
244    #[wasm_bindgen(method, setter, js_class = "Document", js_name = "onreadystatechange")]
245    #[doc = "Setter for the `onreadystatechange` field of this object."]
246    #[doc = ""]
247    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/onreadystatechange)"]
248    #[doc = ""]
249    #[doc = "*This API requires the following crate features to be activated: `Document`*"]
250    pub fn set_onreadystatechange(this: &Document, value: Option<&::js_sys::Function>);
251    #[wasm_bindgen(
252        method,
253        getter,
254        js_class = "Document",
255        js_name = "onbeforescriptexecute"
256    )]
257    #[doc = "Getter for the `onbeforescriptexecute` field of this object."]
258    #[doc = ""]
259    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/onbeforescriptexecute)"]
260    #[doc = ""]
261    #[doc = "*This API requires the following crate features to be activated: `Document`*"]
262    pub fn onbeforescriptexecute(this: &Document) -> Option<::js_sys::Function>;
263    #[wasm_bindgen(
264        method,
265        setter,
266        js_class = "Document",
267        js_name = "onbeforescriptexecute"
268    )]
269    #[doc = "Setter for the `onbeforescriptexecute` field of this object."]
270    #[doc = ""]
271    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/onbeforescriptexecute)"]
272    #[doc = ""]
273    #[doc = "*This API requires the following crate features to be activated: `Document`*"]
274    pub fn set_onbeforescriptexecute(this: &Document, value: Option<&::js_sys::Function>);
275    #[wasm_bindgen(
276        method,
277        getter,
278        js_class = "Document",
279        js_name = "onafterscriptexecute"
280    )]
281    #[doc = "Getter for the `onafterscriptexecute` field of this object."]
282    #[doc = ""]
283    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/onafterscriptexecute)"]
284    #[doc = ""]
285    #[doc = "*This API requires the following crate features to be activated: `Document`*"]
286    pub fn onafterscriptexecute(this: &Document) -> Option<::js_sys::Function>;
287    #[wasm_bindgen(
288        method,
289        setter,
290        js_class = "Document",
291        js_name = "onafterscriptexecute"
292    )]
293    #[doc = "Setter for the `onafterscriptexecute` field of this object."]
294    #[doc = ""]
295    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/onafterscriptexecute)"]
296    #[doc = ""]
297    #[doc = "*This API requires the following crate features to be activated: `Document`*"]
298    pub fn set_onafterscriptexecute(this: &Document, value: Option<&::js_sys::Function>);
299    #[wasm_bindgen(method, getter, js_class = "Document", js_name = "onselectionchange")]
300    #[doc = "Getter for the `onselectionchange` field of this object."]
301    #[doc = ""]
302    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/onselectionchange)"]
303    #[doc = ""]
304    #[doc = "*This API requires the following crate features to be activated: `Document`*"]
305    pub fn onselectionchange(this: &Document) -> Option<::js_sys::Function>;
306    #[wasm_bindgen(method, setter, js_class = "Document", js_name = "onselectionchange")]
307    #[doc = "Setter for the `onselectionchange` field of this object."]
308    #[doc = ""]
309    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/onselectionchange)"]
310    #[doc = ""]
311    #[doc = "*This API requires the following crate features to be activated: `Document`*"]
312    pub fn set_onselectionchange(this: &Document, value: Option<&::js_sys::Function>);
313    #[cfg(feature = "Element")]
314    #[wasm_bindgen(method, getter, js_class = "Document", js_name = "currentScript")]
315    #[doc = "Getter for the `currentScript` field of this object."]
316    #[doc = ""]
317    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/currentScript)"]
318    #[doc = ""]
319    #[doc = "*This API requires the following crate features to be activated: `Document`, `Element`*"]
320    pub fn current_script(this: &Document) -> Option<Element>;
321    #[cfg(feature = "HtmlCollection")]
322    #[wasm_bindgen(method, getter, js_class = "Document", js_name = "anchors")]
323    #[doc = "Getter for the `anchors` field of this object."]
324    #[doc = ""]
325    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/anchors)"]
326    #[doc = ""]
327    #[doc = "*This API requires the following crate features to be activated: `Document`, `HtmlCollection`*"]
328    pub fn anchors(this: &Document) -> HtmlCollection;
329    #[cfg(feature = "HtmlCollection")]
330    #[wasm_bindgen(method, getter, js_class = "Document", js_name = "applets")]
331    #[doc = "Getter for the `applets` field of this object."]
332    #[doc = ""]
333    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/applets)"]
334    #[doc = ""]
335    #[doc = "*This API requires the following crate features to be activated: `Document`, `HtmlCollection`*"]
336    pub fn applets(this: &Document) -> HtmlCollection;
337    #[wasm_bindgen(method, getter, js_class = "Document", js_name = "fullscreen")]
338    #[doc = "Getter for the `fullscreen` field of this object."]
339    #[doc = ""]
340    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/fullscreen)"]
341    #[doc = ""]
342    #[doc = "*This API requires the following crate features to be activated: `Document`*"]
343    pub fn fullscreen(this: &Document) -> bool;
344    #[wasm_bindgen(method, getter, js_class = "Document", js_name = "fullscreenEnabled")]
345    #[doc = "Getter for the `fullscreenEnabled` field of this object."]
346    #[doc = ""]
347    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/fullscreenEnabled)"]
348    #[doc = ""]
349    #[doc = "*This API requires the following crate features to be activated: `Document`*"]
350    pub fn fullscreen_enabled(this: &Document) -> bool;
351    #[wasm_bindgen(method, getter, js_class = "Document", js_name = "onfullscreenchange")]
352    #[doc = "Getter for the `onfullscreenchange` field of this object."]
353    #[doc = ""]
354    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/onfullscreenchange)"]
355    #[doc = ""]
356    #[doc = "*This API requires the following crate features to be activated: `Document`*"]
357    pub fn onfullscreenchange(this: &Document) -> Option<::js_sys::Function>;
358    #[wasm_bindgen(method, setter, js_class = "Document", js_name = "onfullscreenchange")]
359    #[doc = "Setter for the `onfullscreenchange` field of this object."]
360    #[doc = ""]
361    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/onfullscreenchange)"]
362    #[doc = ""]
363    #[doc = "*This API requires the following crate features to be activated: `Document`*"]
364    pub fn set_onfullscreenchange(this: &Document, value: Option<&::js_sys::Function>);
365    #[wasm_bindgen(method, getter, js_class = "Document", js_name = "onfullscreenerror")]
366    #[doc = "Getter for the `onfullscreenerror` field of this object."]
367    #[doc = ""]
368    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/onfullscreenerror)"]
369    #[doc = ""]
370    #[doc = "*This API requires the following crate features to be activated: `Document`*"]
371    pub fn onfullscreenerror(this: &Document) -> Option<::js_sys::Function>;
372    #[wasm_bindgen(method, setter, js_class = "Document", js_name = "onfullscreenerror")]
373    #[doc = "Setter for the `onfullscreenerror` field of this object."]
374    #[doc = ""]
375    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/onfullscreenerror)"]
376    #[doc = ""]
377    #[doc = "*This API requires the following crate features to be activated: `Document`*"]
378    pub fn set_onfullscreenerror(this: &Document, value: Option<&::js_sys::Function>);
379    #[wasm_bindgen(method, getter, js_class = "Document", js_name = "onpointerlockchange")]
380    #[doc = "Getter for the `onpointerlockchange` field of this object."]
381    #[doc = ""]
382    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/onpointerlockchange)"]
383    #[doc = ""]
384    #[doc = "*This API requires the following crate features to be activated: `Document`*"]
385    pub fn onpointerlockchange(this: &Document) -> Option<::js_sys::Function>;
386    #[wasm_bindgen(method, setter, js_class = "Document", js_name = "onpointerlockchange")]
387    #[doc = "Setter for the `onpointerlockchange` field of this object."]
388    #[doc = ""]
389    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/onpointerlockchange)"]
390    #[doc = ""]
391    #[doc = "*This API requires the following crate features to be activated: `Document`*"]
392    pub fn set_onpointerlockchange(this: &Document, value: Option<&::js_sys::Function>);
393    #[wasm_bindgen(method, getter, js_class = "Document", js_name = "onpointerlockerror")]
394    #[doc = "Getter for the `onpointerlockerror` field of this object."]
395    #[doc = ""]
396    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/onpointerlockerror)"]
397    #[doc = ""]
398    #[doc = "*This API requires the following crate features to be activated: `Document`*"]
399    pub fn onpointerlockerror(this: &Document) -> Option<::js_sys::Function>;
400    #[wasm_bindgen(method, setter, js_class = "Document", js_name = "onpointerlockerror")]
401    #[doc = "Setter for the `onpointerlockerror` field of this object."]
402    #[doc = ""]
403    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/onpointerlockerror)"]
404    #[doc = ""]
405    #[doc = "*This API requires the following crate features to be activated: `Document`*"]
406    pub fn set_onpointerlockerror(this: &Document, value: Option<&::js_sys::Function>);
407    #[wasm_bindgen(method, getter, js_class = "Document", js_name = "hidden")]
408    #[doc = "Getter for the `hidden` field of this object."]
409    #[doc = ""]
410    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/hidden)"]
411    #[doc = ""]
412    #[doc = "*This API requires the following crate features to be activated: `Document`*"]
413    pub fn hidden(this: &Document) -> bool;
414    #[cfg(feature = "VisibilityState")]
415    #[wasm_bindgen(method, getter, js_class = "Document", js_name = "visibilityState")]
416    #[doc = "Getter for the `visibilityState` field of this object."]
417    #[doc = ""]
418    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/visibilityState)"]
419    #[doc = ""]
420    #[doc = "*This API requires the following crate features to be activated: `Document`, `VisibilityState`*"]
421    pub fn visibility_state(this: &Document) -> VisibilityState;
422    #[wasm_bindgen(method, getter, js_class = "Document", js_name = "onvisibilitychange")]
423    #[doc = "Getter for the `onvisibilitychange` field of this object."]
424    #[doc = ""]
425    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/onvisibilitychange)"]
426    #[doc = ""]
427    #[doc = "*This API requires the following crate features to be activated: `Document`*"]
428    pub fn onvisibilitychange(this: &Document) -> Option<::js_sys::Function>;
429    #[wasm_bindgen(method, setter, js_class = "Document", js_name = "onvisibilitychange")]
430    #[doc = "Setter for the `onvisibilitychange` field of this object."]
431    #[doc = ""]
432    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/onvisibilitychange)"]
433    #[doc = ""]
434    #[doc = "*This API requires the following crate features to be activated: `Document`*"]
435    pub fn set_onvisibilitychange(this: &Document, value: Option<&::js_sys::Function>);
436    #[wasm_bindgen(
437        method,
438        getter,
439        js_class = "Document",
440        js_name = "selectedStyleSheetSet"
441    )]
442    #[doc = "Getter for the `selectedStyleSheetSet` field of this object."]
443    #[doc = ""]
444    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/selectedStyleSheetSet)"]
445    #[doc = ""]
446    #[doc = "*This API requires the following crate features to be activated: `Document`*"]
447    pub fn selected_style_sheet_set(this: &Document) -> Option<::alloc::string::String>;
448    #[wasm_bindgen(
449        method,
450        setter,
451        js_class = "Document",
452        js_name = "selectedStyleSheetSet"
453    )]
454    #[doc = "Setter for the `selectedStyleSheetSet` field of this object."]
455    #[doc = ""]
456    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/selectedStyleSheetSet)"]
457    #[doc = ""]
458    #[doc = "*This API requires the following crate features to be activated: `Document`*"]
459    pub fn set_selected_style_sheet_set(this: &Document, value: Option<&str>);
460    #[wasm_bindgen(method, getter, js_class = "Document", js_name = "lastStyleSheetSet")]
461    #[doc = "Getter for the `lastStyleSheetSet` field of this object."]
462    #[doc = ""]
463    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/lastStyleSheetSet)"]
464    #[doc = ""]
465    #[doc = "*This API requires the following crate features to be activated: `Document`*"]
466    pub fn last_style_sheet_set(this: &Document) -> Option<::alloc::string::String>;
467    #[wasm_bindgen(
468        method,
469        getter,
470        js_class = "Document",
471        js_name = "preferredStyleSheetSet"
472    )]
473    #[doc = "Getter for the `preferredStyleSheetSet` field of this object."]
474    #[doc = ""]
475    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/preferredStyleSheetSet)"]
476    #[doc = ""]
477    #[doc = "*This API requires the following crate features to be activated: `Document`*"]
478    pub fn preferred_style_sheet_set(this: &Document) -> Option<::alloc::string::String>;
479    #[cfg(feature = "DomStringList")]
480    #[wasm_bindgen(method, getter, js_class = "Document", js_name = "styleSheetSets")]
481    #[doc = "Getter for the `styleSheetSets` field of this object."]
482    #[doc = ""]
483    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/styleSheetSets)"]
484    #[doc = ""]
485    #[doc = "*This API requires the following crate features to be activated: `Document`, `DomStringList`*"]
486    pub fn style_sheet_sets(this: &Document) -> DomStringList;
487    #[cfg(feature = "Element")]
488    #[wasm_bindgen(method, getter, js_class = "Document", js_name = "scrollingElement")]
489    #[doc = "Getter for the `scrollingElement` field of this object."]
490    #[doc = ""]
491    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/scrollingElement)"]
492    #[doc = ""]
493    #[doc = "*This API requires the following crate features to be activated: `Document`, `Element`*"]
494    pub fn scrolling_element(this: &Document) -> Option<Element>;
495    #[cfg(feature = "DocumentTimeline")]
496    #[wasm_bindgen(method, getter, js_class = "Document", js_name = "timeline")]
497    #[doc = "Getter for the `timeline` field of this object."]
498    #[doc = ""]
499    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/timeline)"]
500    #[doc = ""]
501    #[doc = "*This API requires the following crate features to be activated: `Document`, `DocumentTimeline`*"]
502    pub fn timeline(this: &Document) -> DocumentTimeline;
503    #[cfg(feature = "SvgsvgElement")]
504    #[wasm_bindgen(method, getter, js_class = "Document", js_name = "rootElement")]
505    #[doc = "Getter for the `rootElement` field of this object."]
506    #[doc = ""]
507    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/rootElement)"]
508    #[doc = ""]
509    #[doc = "*This API requires the following crate features to be activated: `Document`, `SvgsvgElement`*"]
510    pub fn root_element(this: &Document) -> Option<SvgsvgElement>;
511    #[cfg(web_sys_unstable_apis)]
512    #[wasm_bindgen(
513        method,
514        getter,
515        js_class = "Document",
516        js_name = "pictureInPictureEnabled"
517    )]
518    #[doc = "Getter for the `pictureInPictureEnabled` field of this object."]
519    #[doc = ""]
520    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/pictureInPictureEnabled)"]
521    #[doc = ""]
522    #[doc = "*This API requires the following crate features to be activated: `Document`*"]
523    #[doc = ""]
524    #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
525    #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
526    pub fn picture_in_picture_enabled(this: &Document) -> bool;
527    #[wasm_bindgen(method, getter, js_class = "Document", js_name = "oncopy")]
528    #[doc = "Getter for the `oncopy` field of this object."]
529    #[doc = ""]
530    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/oncopy)"]
531    #[doc = ""]
532    #[doc = "*This API requires the following crate features to be activated: `Document`*"]
533    pub fn oncopy(this: &Document) -> Option<::js_sys::Function>;
534    #[wasm_bindgen(method, setter, js_class = "Document", js_name = "oncopy")]
535    #[doc = "Setter for the `oncopy` field of this object."]
536    #[doc = ""]
537    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/oncopy)"]
538    #[doc = ""]
539    #[doc = "*This API requires the following crate features to be activated: `Document`*"]
540    pub fn set_oncopy(this: &Document, value: Option<&::js_sys::Function>);
541    #[wasm_bindgen(method, getter, js_class = "Document", js_name = "oncut")]
542    #[doc = "Getter for the `oncut` field of this object."]
543    #[doc = ""]
544    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/oncut)"]
545    #[doc = ""]
546    #[doc = "*This API requires the following crate features to be activated: `Document`*"]
547    pub fn oncut(this: &Document) -> Option<::js_sys::Function>;
548    #[wasm_bindgen(method, setter, js_class = "Document", js_name = "oncut")]
549    #[doc = "Setter for the `oncut` field of this object."]
550    #[doc = ""]
551    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/oncut)"]
552    #[doc = ""]
553    #[doc = "*This API requires the following crate features to be activated: `Document`*"]
554    pub fn set_oncut(this: &Document, value: Option<&::js_sys::Function>);
555    #[wasm_bindgen(method, getter, js_class = "Document", js_name = "onpaste")]
556    #[doc = "Getter for the `onpaste` field of this object."]
557    #[doc = ""]
558    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/onpaste)"]
559    #[doc = ""]
560    #[doc = "*This API requires the following crate features to be activated: `Document`*"]
561    pub fn onpaste(this: &Document) -> Option<::js_sys::Function>;
562    #[wasm_bindgen(method, setter, js_class = "Document", js_name = "onpaste")]
563    #[doc = "Setter for the `onpaste` field of this object."]
564    #[doc = ""]
565    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/onpaste)"]
566    #[doc = ""]
567    #[doc = "*This API requires the following crate features to be activated: `Document`*"]
568    pub fn set_onpaste(this: &Document, value: Option<&::js_sys::Function>);
569    #[cfg(feature = "Element")]
570    #[wasm_bindgen(method, getter, js_class = "Document", js_name = "activeElement")]
571    #[doc = "Getter for the `activeElement` field of this object."]
572    #[doc = ""]
573    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/activeElement)"]
574    #[doc = ""]
575    #[doc = "*This API requires the following crate features to be activated: `Document`, `Element`*"]
576    pub fn active_element(this: &Document) -> Option<Element>;
577    #[cfg(feature = "Element")]
578    #[wasm_bindgen(method, getter, js_class = "Document", js_name = "pointerLockElement")]
579    #[doc = "Getter for the `pointerLockElement` field of this object."]
580    #[doc = ""]
581    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/pointerLockElement)"]
582    #[doc = ""]
583    #[doc = "*This API requires the following crate features to be activated: `Document`, `Element`*"]
584    pub fn pointer_lock_element(this: &Document) -> Option<Element>;
585    #[cfg(feature = "Element")]
586    #[wasm_bindgen(method, getter, js_class = "Document", js_name = "fullscreenElement")]
587    #[doc = "Getter for the `fullscreenElement` field of this object."]
588    #[doc = ""]
589    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/fullscreenElement)"]
590    #[doc = ""]
591    #[doc = "*This API requires the following crate features to be activated: `Document`, `Element`*"]
592    pub fn fullscreen_element(this: &Document) -> Option<Element>;
593    #[cfg(feature = "StyleSheetList")]
594    #[wasm_bindgen(method, getter, js_class = "Document", js_name = "styleSheets")]
595    #[doc = "Getter for the `styleSheets` field of this object."]
596    #[doc = ""]
597    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/styleSheets)"]
598    #[doc = ""]
599    #[doc = "*This API requires the following crate features to be activated: `Document`, `StyleSheetList`*"]
600    pub fn style_sheets(this: &Document) -> StyleSheetList;
601    #[wasm_bindgen(method, getter, js_class = "Document", js_name = "adoptedStyleSheets")]
602    #[doc = "Getter for the `adoptedStyleSheets` field of this object."]
603    #[doc = ""]
604    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/adoptedStyleSheets)"]
605    #[doc = ""]
606    #[doc = "*This API requires the following crate features to be activated: `Document`*"]
607    pub fn adopted_style_sheets(this: &Document) -> ::js_sys::Array;
608    #[wasm_bindgen(method, setter, js_class = "Document", js_name = "adoptedStyleSheets")]
609    #[doc = "Setter for the `adoptedStyleSheets` field of this object."]
610    #[doc = ""]
611    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/adoptedStyleSheets)"]
612    #[doc = ""]
613    #[doc = "*This API requires the following crate features to be activated: `Document`*"]
614    pub fn set_adopted_style_sheets(this: &Document, value: &::wasm_bindgen::JsValue);
615    #[cfg(web_sys_unstable_apis)]
616    #[cfg(feature = "Element")]
617    #[wasm_bindgen(
618        method,
619        getter,
620        js_class = "Document",
621        js_name = "pictureInPictureElement"
622    )]
623    #[doc = "Getter for the `pictureInPictureElement` field of this object."]
624    #[doc = ""]
625    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/pictureInPictureElement)"]
626    #[doc = ""]
627    #[doc = "*This API requires the following crate features to be activated: `Document`, `Element`*"]
628    #[doc = ""]
629    #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
630    #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
631    pub fn picture_in_picture_element(this: &Document) -> Option<Element>;
632    #[cfg(feature = "FontFaceSet")]
633    #[wasm_bindgen(method, getter, js_class = "Document", js_name = "fonts")]
634    #[doc = "Getter for the `fonts` field of this object."]
635    #[doc = ""]
636    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/fonts)"]
637    #[doc = ""]
638    #[doc = "*This API requires the following crate features to be activated: `Document`, `FontFaceSet`*"]
639    pub fn fonts(this: &Document) -> FontFaceSet;
640    #[wasm_bindgen(method, getter, js_class = "Document", js_name = "onabort")]
641    #[doc = "Getter for the `onabort` field of this object."]
642    #[doc = ""]
643    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/onabort)"]
644    #[doc = ""]
645    #[doc = "*This API requires the following crate features to be activated: `Document`*"]
646    pub fn onabort(this: &Document) -> Option<::js_sys::Function>;
647    #[wasm_bindgen(method, setter, js_class = "Document", js_name = "onabort")]
648    #[doc = "Setter for the `onabort` field of this object."]
649    #[doc = ""]
650    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/onabort)"]
651    #[doc = ""]
652    #[doc = "*This API requires the following crate features to be activated: `Document`*"]
653    pub fn set_onabort(this: &Document, value: Option<&::js_sys::Function>);
654    #[wasm_bindgen(method, getter, js_class = "Document", js_name = "onblur")]
655    #[doc = "Getter for the `onblur` field of this object."]
656    #[doc = ""]
657    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/onblur)"]
658    #[doc = ""]
659    #[doc = "*This API requires the following crate features to be activated: `Document`*"]
660    pub fn onblur(this: &Document) -> Option<::js_sys::Function>;
661    #[wasm_bindgen(method, setter, js_class = "Document", js_name = "onblur")]
662    #[doc = "Setter for the `onblur` field of this object."]
663    #[doc = ""]
664    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/onblur)"]
665    #[doc = ""]
666    #[doc = "*This API requires the following crate features to be activated: `Document`*"]
667    pub fn set_onblur(this: &Document, value: Option<&::js_sys::Function>);
668    #[wasm_bindgen(method, getter, js_class = "Document", js_name = "onfocus")]
669    #[doc = "Getter for the `onfocus` field of this object."]
670    #[doc = ""]
671    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/onfocus)"]
672    #[doc = ""]
673    #[doc = "*This API requires the following crate features to be activated: `Document`*"]
674    pub fn onfocus(this: &Document) -> Option<::js_sys::Function>;
675    #[wasm_bindgen(method, setter, js_class = "Document", js_name = "onfocus")]
676    #[doc = "Setter for the `onfocus` field of this object."]
677    #[doc = ""]
678    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/onfocus)"]
679    #[doc = ""]
680    #[doc = "*This API requires the following crate features to be activated: `Document`*"]
681    pub fn set_onfocus(this: &Document, value: Option<&::js_sys::Function>);
682    #[wasm_bindgen(method, getter, js_class = "Document", js_name = "oncancel")]
683    #[doc = "Getter for the `oncancel` field of this object."]
684    #[doc = ""]
685    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/oncancel)"]
686    #[doc = ""]
687    #[doc = "*This API requires the following crate features to be activated: `Document`*"]
688    pub fn oncancel(this: &Document) -> Option<::js_sys::Function>;
689    #[wasm_bindgen(method, setter, js_class = "Document", js_name = "oncancel")]
690    #[doc = "Setter for the `oncancel` field of this object."]
691    #[doc = ""]
692    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/oncancel)"]
693    #[doc = ""]
694    #[doc = "*This API requires the following crate features to be activated: `Document`*"]
695    pub fn set_oncancel(this: &Document, value: Option<&::js_sys::Function>);
696    #[wasm_bindgen(method, getter, js_class = "Document", js_name = "onauxclick")]
697    #[doc = "Getter for the `onauxclick` field of this object."]
698    #[doc = ""]
699    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/onauxclick)"]
700    #[doc = ""]
701    #[doc = "*This API requires the following crate features to be activated: `Document`*"]
702    pub fn onauxclick(this: &Document) -> Option<::js_sys::Function>;
703    #[wasm_bindgen(method, setter, js_class = "Document", js_name = "onauxclick")]
704    #[doc = "Setter for the `onauxclick` field of this object."]
705    #[doc = ""]
706    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/onauxclick)"]
707    #[doc = ""]
708    #[doc = "*This API requires the following crate features to be activated: `Document`*"]
709    pub fn set_onauxclick(this: &Document, value: Option<&::js_sys::Function>);
710    #[wasm_bindgen(method, getter, js_class = "Document", js_name = "onbeforetoggle")]
711    #[doc = "Getter for the `onbeforetoggle` field of this object."]
712    #[doc = ""]
713    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/onbeforetoggle)"]
714    #[doc = ""]
715    #[doc = "*This API requires the following crate features to be activated: `Document`*"]
716    pub fn onbeforetoggle(this: &Document) -> Option<::js_sys::Function>;
717    #[wasm_bindgen(method, setter, js_class = "Document", js_name = "onbeforetoggle")]
718    #[doc = "Setter for the `onbeforetoggle` field of this object."]
719    #[doc = ""]
720    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/onbeforetoggle)"]
721    #[doc = ""]
722    #[doc = "*This API requires the following crate features to be activated: `Document`*"]
723    pub fn set_onbeforetoggle(this: &Document, value: Option<&::js_sys::Function>);
724    #[wasm_bindgen(method, getter, js_class = "Document", js_name = "oncanplay")]
725    #[doc = "Getter for the `oncanplay` field of this object."]
726    #[doc = ""]
727    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/oncanplay)"]
728    #[doc = ""]
729    #[doc = "*This API requires the following crate features to be activated: `Document`*"]
730    pub fn oncanplay(this: &Document) -> Option<::js_sys::Function>;
731    #[wasm_bindgen(method, setter, js_class = "Document", js_name = "oncanplay")]
732    #[doc = "Setter for the `oncanplay` field of this object."]
733    #[doc = ""]
734    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/oncanplay)"]
735    #[doc = ""]
736    #[doc = "*This API requires the following crate features to be activated: `Document`*"]
737    pub fn set_oncanplay(this: &Document, value: Option<&::js_sys::Function>);
738    #[wasm_bindgen(method, getter, js_class = "Document", js_name = "oncanplaythrough")]
739    #[doc = "Getter for the `oncanplaythrough` field of this object."]
740    #[doc = ""]
741    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/oncanplaythrough)"]
742    #[doc = ""]
743    #[doc = "*This API requires the following crate features to be activated: `Document`*"]
744    pub fn oncanplaythrough(this: &Document) -> Option<::js_sys::Function>;
745    #[wasm_bindgen(method, setter, js_class = "Document", js_name = "oncanplaythrough")]
746    #[doc = "Setter for the `oncanplaythrough` field of this object."]
747    #[doc = ""]
748    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/oncanplaythrough)"]
749    #[doc = ""]
750    #[doc = "*This API requires the following crate features to be activated: `Document`*"]
751    pub fn set_oncanplaythrough(this: &Document, value: Option<&::js_sys::Function>);
752    #[wasm_bindgen(method, getter, js_class = "Document", js_name = "onchange")]
753    #[doc = "Getter for the `onchange` field of this object."]
754    #[doc = ""]
755    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/onchange)"]
756    #[doc = ""]
757    #[doc = "*This API requires the following crate features to be activated: `Document`*"]
758    pub fn onchange(this: &Document) -> Option<::js_sys::Function>;
759    #[wasm_bindgen(method, setter, js_class = "Document", js_name = "onchange")]
760    #[doc = "Setter for the `onchange` field of this object."]
761    #[doc = ""]
762    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/onchange)"]
763    #[doc = ""]
764    #[doc = "*This API requires the following crate features to be activated: `Document`*"]
765    pub fn set_onchange(this: &Document, value: Option<&::js_sys::Function>);
766    #[wasm_bindgen(method, getter, js_class = "Document", js_name = "onclick")]
767    #[doc = "Getter for the `onclick` field of this object."]
768    #[doc = ""]
769    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/onclick)"]
770    #[doc = ""]
771    #[doc = "*This API requires the following crate features to be activated: `Document`*"]
772    pub fn onclick(this: &Document) -> Option<::js_sys::Function>;
773    #[wasm_bindgen(method, setter, js_class = "Document", js_name = "onclick")]
774    #[doc = "Setter for the `onclick` field of this object."]
775    #[doc = ""]
776    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/onclick)"]
777    #[doc = ""]
778    #[doc = "*This API requires the following crate features to be activated: `Document`*"]
779    pub fn set_onclick(this: &Document, value: Option<&::js_sys::Function>);
780    #[wasm_bindgen(method, getter, js_class = "Document", js_name = "onclose")]
781    #[doc = "Getter for the `onclose` field of this object."]
782    #[doc = ""]
783    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/onclose)"]
784    #[doc = ""]
785    #[doc = "*This API requires the following crate features to be activated: `Document`*"]
786    pub fn onclose(this: &Document) -> Option<::js_sys::Function>;
787    #[wasm_bindgen(method, setter, js_class = "Document", js_name = "onclose")]
788    #[doc = "Setter for the `onclose` field of this object."]
789    #[doc = ""]
790    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/onclose)"]
791    #[doc = ""]
792    #[doc = "*This API requires the following crate features to be activated: `Document`*"]
793    pub fn set_onclose(this: &Document, value: Option<&::js_sys::Function>);
794    #[wasm_bindgen(method, getter, js_class = "Document", js_name = "oncontextmenu")]
795    #[doc = "Getter for the `oncontextmenu` field of this object."]
796    #[doc = ""]
797    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/oncontextmenu)"]
798    #[doc = ""]
799    #[doc = "*This API requires the following crate features to be activated: `Document`*"]
800    pub fn oncontextmenu(this: &Document) -> Option<::js_sys::Function>;
801    #[wasm_bindgen(method, setter, js_class = "Document", js_name = "oncontextmenu")]
802    #[doc = "Setter for the `oncontextmenu` field of this object."]
803    #[doc = ""]
804    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/oncontextmenu)"]
805    #[doc = ""]
806    #[doc = "*This API requires the following crate features to be activated: `Document`*"]
807    pub fn set_oncontextmenu(this: &Document, value: Option<&::js_sys::Function>);
808    #[wasm_bindgen(method, getter, js_class = "Document", js_name = "ondblclick")]
809    #[doc = "Getter for the `ondblclick` field of this object."]
810    #[doc = ""]
811    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/ondblclick)"]
812    #[doc = ""]
813    #[doc = "*This API requires the following crate features to be activated: `Document`*"]
814    pub fn ondblclick(this: &Document) -> Option<::js_sys::Function>;
815    #[wasm_bindgen(method, setter, js_class = "Document", js_name = "ondblclick")]
816    #[doc = "Setter for the `ondblclick` field of this object."]
817    #[doc = ""]
818    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/ondblclick)"]
819    #[doc = ""]
820    #[doc = "*This API requires the following crate features to be activated: `Document`*"]
821    pub fn set_ondblclick(this: &Document, value: Option<&::js_sys::Function>);
822    #[wasm_bindgen(method, getter, js_class = "Document", js_name = "ondrag")]
823    #[doc = "Getter for the `ondrag` field of this object."]
824    #[doc = ""]
825    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/ondrag)"]
826    #[doc = ""]
827    #[doc = "*This API requires the following crate features to be activated: `Document`*"]
828    pub fn ondrag(this: &Document) -> Option<::js_sys::Function>;
829    #[wasm_bindgen(method, setter, js_class = "Document", js_name = "ondrag")]
830    #[doc = "Setter for the `ondrag` field of this object."]
831    #[doc = ""]
832    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/ondrag)"]
833    #[doc = ""]
834    #[doc = "*This API requires the following crate features to be activated: `Document`*"]
835    pub fn set_ondrag(this: &Document, value: Option<&::js_sys::Function>);
836    #[wasm_bindgen(method, getter, js_class = "Document", js_name = "ondragend")]
837    #[doc = "Getter for the `ondragend` field of this object."]
838    #[doc = ""]
839    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/ondragend)"]
840    #[doc = ""]
841    #[doc = "*This API requires the following crate features to be activated: `Document`*"]
842    pub fn ondragend(this: &Document) -> Option<::js_sys::Function>;
843    #[wasm_bindgen(method, setter, js_class = "Document", js_name = "ondragend")]
844    #[doc = "Setter for the `ondragend` field of this object."]
845    #[doc = ""]
846    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/ondragend)"]
847    #[doc = ""]
848    #[doc = "*This API requires the following crate features to be activated: `Document`*"]
849    pub fn set_ondragend(this: &Document, value: Option<&::js_sys::Function>);
850    #[wasm_bindgen(method, getter, js_class = "Document", js_name = "ondragenter")]
851    #[doc = "Getter for the `ondragenter` field of this object."]
852    #[doc = ""]
853    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/ondragenter)"]
854    #[doc = ""]
855    #[doc = "*This API requires the following crate features to be activated: `Document`*"]
856    pub fn ondragenter(this: &Document) -> Option<::js_sys::Function>;
857    #[wasm_bindgen(method, setter, js_class = "Document", js_name = "ondragenter")]
858    #[doc = "Setter for the `ondragenter` field of this object."]
859    #[doc = ""]
860    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/ondragenter)"]
861    #[doc = ""]
862    #[doc = "*This API requires the following crate features to be activated: `Document`*"]
863    pub fn set_ondragenter(this: &Document, value: Option<&::js_sys::Function>);
864    #[wasm_bindgen(method, getter, js_class = "Document", js_name = "ondragexit")]
865    #[doc = "Getter for the `ondragexit` field of this object."]
866    #[doc = ""]
867    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/ondragexit)"]
868    #[doc = ""]
869    #[doc = "*This API requires the following crate features to be activated: `Document`*"]
870    pub fn ondragexit(this: &Document) -> Option<::js_sys::Function>;
871    #[wasm_bindgen(method, setter, js_class = "Document", js_name = "ondragexit")]
872    #[doc = "Setter for the `ondragexit` field of this object."]
873    #[doc = ""]
874    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/ondragexit)"]
875    #[doc = ""]
876    #[doc = "*This API requires the following crate features to be activated: `Document`*"]
877    pub fn set_ondragexit(this: &Document, value: Option<&::js_sys::Function>);
878    #[wasm_bindgen(method, getter, js_class = "Document", js_name = "ondragleave")]
879    #[doc = "Getter for the `ondragleave` field of this object."]
880    #[doc = ""]
881    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/ondragleave)"]
882    #[doc = ""]
883    #[doc = "*This API requires the following crate features to be activated: `Document`*"]
884    pub fn ondragleave(this: &Document) -> Option<::js_sys::Function>;
885    #[wasm_bindgen(method, setter, js_class = "Document", js_name = "ondragleave")]
886    #[doc = "Setter for the `ondragleave` field of this object."]
887    #[doc = ""]
888    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/ondragleave)"]
889    #[doc = ""]
890    #[doc = "*This API requires the following crate features to be activated: `Document`*"]
891    pub fn set_ondragleave(this: &Document, value: Option<&::js_sys::Function>);
892    #[wasm_bindgen(method, getter, js_class = "Document", js_name = "ondragover")]
893    #[doc = "Getter for the `ondragover` field of this object."]
894    #[doc = ""]
895    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/ondragover)"]
896    #[doc = ""]
897    #[doc = "*This API requires the following crate features to be activated: `Document`*"]
898    pub fn ondragover(this: &Document) -> Option<::js_sys::Function>;
899    #[wasm_bindgen(method, setter, js_class = "Document", js_name = "ondragover")]
900    #[doc = "Setter for the `ondragover` field of this object."]
901    #[doc = ""]
902    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/ondragover)"]
903    #[doc = ""]
904    #[doc = "*This API requires the following crate features to be activated: `Document`*"]
905    pub fn set_ondragover(this: &Document, value: Option<&::js_sys::Function>);
906    #[wasm_bindgen(method, getter, js_class = "Document", js_name = "ondragstart")]
907    #[doc = "Getter for the `ondragstart` field of this object."]
908    #[doc = ""]
909    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/ondragstart)"]
910    #[doc = ""]
911    #[doc = "*This API requires the following crate features to be activated: `Document`*"]
912    pub fn ondragstart(this: &Document) -> Option<::js_sys::Function>;
913    #[wasm_bindgen(method, setter, js_class = "Document", js_name = "ondragstart")]
914    #[doc = "Setter for the `ondragstart` field of this object."]
915    #[doc = ""]
916    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/ondragstart)"]
917    #[doc = ""]
918    #[doc = "*This API requires the following crate features to be activated: `Document`*"]
919    pub fn set_ondragstart(this: &Document, value: Option<&::js_sys::Function>);
920    #[wasm_bindgen(method, getter, js_class = "Document", js_name = "ondrop")]
921    #[doc = "Getter for the `ondrop` field of this object."]
922    #[doc = ""]
923    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/ondrop)"]
924    #[doc = ""]
925    #[doc = "*This API requires the following crate features to be activated: `Document`*"]
926    pub fn ondrop(this: &Document) -> Option<::js_sys::Function>;
927    #[wasm_bindgen(method, setter, js_class = "Document", js_name = "ondrop")]
928    #[doc = "Setter for the `ondrop` field of this object."]
929    #[doc = ""]
930    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/ondrop)"]
931    #[doc = ""]
932    #[doc = "*This API requires the following crate features to be activated: `Document`*"]
933    pub fn set_ondrop(this: &Document, value: Option<&::js_sys::Function>);
934    #[wasm_bindgen(method, getter, js_class = "Document", js_name = "ondurationchange")]
935    #[doc = "Getter for the `ondurationchange` field of this object."]
936    #[doc = ""]
937    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/ondurationchange)"]
938    #[doc = ""]
939    #[doc = "*This API requires the following crate features to be activated: `Document`*"]
940    pub fn ondurationchange(this: &Document) -> Option<::js_sys::Function>;
941    #[wasm_bindgen(method, setter, js_class = "Document", js_name = "ondurationchange")]
942    #[doc = "Setter for the `ondurationchange` field of this object."]
943    #[doc = ""]
944    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/ondurationchange)"]
945    #[doc = ""]
946    #[doc = "*This API requires the following crate features to be activated: `Document`*"]
947    pub fn set_ondurationchange(this: &Document, value: Option<&::js_sys::Function>);
948    #[wasm_bindgen(method, getter, js_class = "Document", js_name = "onemptied")]
949    #[doc = "Getter for the `onemptied` field of this object."]
950    #[doc = ""]
951    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/onemptied)"]
952    #[doc = ""]
953    #[doc = "*This API requires the following crate features to be activated: `Document`*"]
954    pub fn onemptied(this: &Document) -> Option<::js_sys::Function>;
955    #[wasm_bindgen(method, setter, js_class = "Document", js_name = "onemptied")]
956    #[doc = "Setter for the `onemptied` field of this object."]
957    #[doc = ""]
958    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/onemptied)"]
959    #[doc = ""]
960    #[doc = "*This API requires the following crate features to be activated: `Document`*"]
961    pub fn set_onemptied(this: &Document, value: Option<&::js_sys::Function>);
962    #[wasm_bindgen(method, getter, js_class = "Document", js_name = "onended")]
963    #[doc = "Getter for the `onended` field of this object."]
964    #[doc = ""]
965    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/onended)"]
966    #[doc = ""]
967    #[doc = "*This API requires the following crate features to be activated: `Document`*"]
968    pub fn onended(this: &Document) -> Option<::js_sys::Function>;
969    #[wasm_bindgen(method, setter, js_class = "Document", js_name = "onended")]
970    #[doc = "Setter for the `onended` field of this object."]
971    #[doc = ""]
972    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/onended)"]
973    #[doc = ""]
974    #[doc = "*This API requires the following crate features to be activated: `Document`*"]
975    pub fn set_onended(this: &Document, value: Option<&::js_sys::Function>);
976    #[wasm_bindgen(method, getter, js_class = "Document", js_name = "oninput")]
977    #[doc = "Getter for the `oninput` field of this object."]
978    #[doc = ""]
979    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/oninput)"]
980    #[doc = ""]
981    #[doc = "*This API requires the following crate features to be activated: `Document`*"]
982    pub fn oninput(this: &Document) -> Option<::js_sys::Function>;
983    #[wasm_bindgen(method, setter, js_class = "Document", js_name = "oninput")]
984    #[doc = "Setter for the `oninput` field of this object."]
985    #[doc = ""]
986    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/oninput)"]
987    #[doc = ""]
988    #[doc = "*This API requires the following crate features to be activated: `Document`*"]
989    pub fn set_oninput(this: &Document, value: Option<&::js_sys::Function>);
990    #[wasm_bindgen(method, getter, js_class = "Document", js_name = "onbeforeinput")]
991    #[doc = "Getter for the `onbeforeinput` field of this object."]
992    #[doc = ""]
993    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/onbeforeinput)"]
994    #[doc = ""]
995    #[doc = "*This API requires the following crate features to be activated: `Document`*"]
996    pub fn onbeforeinput(this: &Document) -> Option<::js_sys::Function>;
997    #[wasm_bindgen(method, setter, js_class = "Document", js_name = "onbeforeinput")]
998    #[doc = "Setter for the `onbeforeinput` field of this object."]
999    #[doc = ""]
1000    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/onbeforeinput)"]
1001    #[doc = ""]
1002    #[doc = "*This API requires the following crate features to be activated: `Document`*"]
1003    pub fn set_onbeforeinput(this: &Document, value: Option<&::js_sys::Function>);
1004    #[wasm_bindgen(method, getter, js_class = "Document", js_name = "oninvalid")]
1005    #[doc = "Getter for the `oninvalid` field of this object."]
1006    #[doc = ""]
1007    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/oninvalid)"]
1008    #[doc = ""]
1009    #[doc = "*This API requires the following crate features to be activated: `Document`*"]
1010    pub fn oninvalid(this: &Document) -> Option<::js_sys::Function>;
1011    #[wasm_bindgen(method, setter, js_class = "Document", js_name = "oninvalid")]
1012    #[doc = "Setter for the `oninvalid` field of this object."]
1013    #[doc = ""]
1014    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/oninvalid)"]
1015    #[doc = ""]
1016    #[doc = "*This API requires the following crate features to be activated: `Document`*"]
1017    pub fn set_oninvalid(this: &Document, value: Option<&::js_sys::Function>);
1018    #[wasm_bindgen(method, getter, js_class = "Document", js_name = "onkeydown")]
1019    #[doc = "Getter for the `onkeydown` field of this object."]
1020    #[doc = ""]
1021    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/onkeydown)"]
1022    #[doc = ""]
1023    #[doc = "*This API requires the following crate features to be activated: `Document`*"]
1024    pub fn onkeydown(this: &Document) -> Option<::js_sys::Function>;
1025    #[wasm_bindgen(method, setter, js_class = "Document", js_name = "onkeydown")]
1026    #[doc = "Setter for the `onkeydown` field of this object."]
1027    #[doc = ""]
1028    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/onkeydown)"]
1029    #[doc = ""]
1030    #[doc = "*This API requires the following crate features to be activated: `Document`*"]
1031    pub fn set_onkeydown(this: &Document, value: Option<&::js_sys::Function>);
1032    #[wasm_bindgen(method, getter, js_class = "Document", js_name = "onkeypress")]
1033    #[doc = "Getter for the `onkeypress` field of this object."]
1034    #[doc = ""]
1035    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/onkeypress)"]
1036    #[doc = ""]
1037    #[doc = "*This API requires the following crate features to be activated: `Document`*"]
1038    pub fn onkeypress(this: &Document) -> Option<::js_sys::Function>;
1039    #[wasm_bindgen(method, setter, js_class = "Document", js_name = "onkeypress")]
1040    #[doc = "Setter for the `onkeypress` field of this object."]
1041    #[doc = ""]
1042    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/onkeypress)"]
1043    #[doc = ""]
1044    #[doc = "*This API requires the following crate features to be activated: `Document`*"]
1045    pub fn set_onkeypress(this: &Document, value: Option<&::js_sys::Function>);
1046    #[wasm_bindgen(method, getter, js_class = "Document", js_name = "onkeyup")]
1047    #[doc = "Getter for the `onkeyup` field of this object."]
1048    #[doc = ""]
1049    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/onkeyup)"]
1050    #[doc = ""]
1051    #[doc = "*This API requires the following crate features to be activated: `Document`*"]
1052    pub fn onkeyup(this: &Document) -> Option<::js_sys::Function>;
1053    #[wasm_bindgen(method, setter, js_class = "Document", js_name = "onkeyup")]
1054    #[doc = "Setter for the `onkeyup` field of this object."]
1055    #[doc = ""]
1056    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/onkeyup)"]
1057    #[doc = ""]
1058    #[doc = "*This API requires the following crate features to be activated: `Document`*"]
1059    pub fn set_onkeyup(this: &Document, value: Option<&::js_sys::Function>);
1060    #[wasm_bindgen(method, getter, js_class = "Document", js_name = "onload")]
1061    #[doc = "Getter for the `onload` field of this object."]
1062    #[doc = ""]
1063    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/onload)"]
1064    #[doc = ""]
1065    #[doc = "*This API requires the following crate features to be activated: `Document`*"]
1066    pub fn onload(this: &Document) -> Option<::js_sys::Function>;
1067    #[wasm_bindgen(method, setter, js_class = "Document", js_name = "onload")]
1068    #[doc = "Setter for the `onload` field of this object."]
1069    #[doc = ""]
1070    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/onload)"]
1071    #[doc = ""]
1072    #[doc = "*This API requires the following crate features to be activated: `Document`*"]
1073    pub fn set_onload(this: &Document, value: Option<&::js_sys::Function>);
1074    #[wasm_bindgen(method, getter, js_class = "Document", js_name = "onloadeddata")]
1075    #[doc = "Getter for the `onloadeddata` field of this object."]
1076    #[doc = ""]
1077    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/onloadeddata)"]
1078    #[doc = ""]
1079    #[doc = "*This API requires the following crate features to be activated: `Document`*"]
1080    pub fn onloadeddata(this: &Document) -> Option<::js_sys::Function>;
1081    #[wasm_bindgen(method, setter, js_class = "Document", js_name = "onloadeddata")]
1082    #[doc = "Setter for the `onloadeddata` field of this object."]
1083    #[doc = ""]
1084    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/onloadeddata)"]
1085    #[doc = ""]
1086    #[doc = "*This API requires the following crate features to be activated: `Document`*"]
1087    pub fn set_onloadeddata(this: &Document, value: Option<&::js_sys::Function>);
1088    #[wasm_bindgen(method, getter, js_class = "Document", js_name = "onloadedmetadata")]
1089    #[doc = "Getter for the `onloadedmetadata` field of this object."]
1090    #[doc = ""]
1091    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/onloadedmetadata)"]
1092    #[doc = ""]
1093    #[doc = "*This API requires the following crate features to be activated: `Document`*"]
1094    pub fn onloadedmetadata(this: &Document) -> Option<::js_sys::Function>;
1095    #[wasm_bindgen(method, setter, js_class = "Document", js_name = "onloadedmetadata")]
1096    #[doc = "Setter for the `onloadedmetadata` field of this object."]
1097    #[doc = ""]
1098    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/onloadedmetadata)"]
1099    #[doc = ""]
1100    #[doc = "*This API requires the following crate features to be activated: `Document`*"]
1101    pub fn set_onloadedmetadata(this: &Document, value: Option<&::js_sys::Function>);
1102    #[wasm_bindgen(method, getter, js_class = "Document", js_name = "onloadend")]
1103    #[doc = "Getter for the `onloadend` field of this object."]
1104    #[doc = ""]
1105    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/onloadend)"]
1106    #[doc = ""]
1107    #[doc = "*This API requires the following crate features to be activated: `Document`*"]
1108    pub fn onloadend(this: &Document) -> Option<::js_sys::Function>;
1109    #[wasm_bindgen(method, setter, js_class = "Document", js_name = "onloadend")]
1110    #[doc = "Setter for the `onloadend` field of this object."]
1111    #[doc = ""]
1112    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/onloadend)"]
1113    #[doc = ""]
1114    #[doc = "*This API requires the following crate features to be activated: `Document`*"]
1115    pub fn set_onloadend(this: &Document, value: Option<&::js_sys::Function>);
1116    #[wasm_bindgen(method, getter, js_class = "Document", js_name = "onloadstart")]
1117    #[doc = "Getter for the `onloadstart` field of this object."]
1118    #[doc = ""]
1119    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/onloadstart)"]
1120    #[doc = ""]
1121    #[doc = "*This API requires the following crate features to be activated: `Document`*"]
1122    pub fn onloadstart(this: &Document) -> Option<::js_sys::Function>;
1123    #[wasm_bindgen(method, setter, js_class = "Document", js_name = "onloadstart")]
1124    #[doc = "Setter for the `onloadstart` field of this object."]
1125    #[doc = ""]
1126    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/onloadstart)"]
1127    #[doc = ""]
1128    #[doc = "*This API requires the following crate features to be activated: `Document`*"]
1129    pub fn set_onloadstart(this: &Document, value: Option<&::js_sys::Function>);
1130    #[wasm_bindgen(method, getter, js_class = "Document", js_name = "onmousedown")]
1131    #[doc = "Getter for the `onmousedown` field of this object."]
1132    #[doc = ""]
1133    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/onmousedown)"]
1134    #[doc = ""]
1135    #[doc = "*This API requires the following crate features to be activated: `Document`*"]
1136    pub fn onmousedown(this: &Document) -> Option<::js_sys::Function>;
1137    #[wasm_bindgen(method, setter, js_class = "Document", js_name = "onmousedown")]
1138    #[doc = "Setter for the `onmousedown` field of this object."]
1139    #[doc = ""]
1140    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/onmousedown)"]
1141    #[doc = ""]
1142    #[doc = "*This API requires the following crate features to be activated: `Document`*"]
1143    pub fn set_onmousedown(this: &Document, value: Option<&::js_sys::Function>);
1144    #[wasm_bindgen(method, getter, js_class = "Document", js_name = "onmouseenter")]
1145    #[doc = "Getter for the `onmouseenter` field of this object."]
1146    #[doc = ""]
1147    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/onmouseenter)"]
1148    #[doc = ""]
1149    #[doc = "*This API requires the following crate features to be activated: `Document`*"]
1150    pub fn onmouseenter(this: &Document) -> Option<::js_sys::Function>;
1151    #[wasm_bindgen(method, setter, js_class = "Document", js_name = "onmouseenter")]
1152    #[doc = "Setter for the `onmouseenter` field of this object."]
1153    #[doc = ""]
1154    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/onmouseenter)"]
1155    #[doc = ""]
1156    #[doc = "*This API requires the following crate features to be activated: `Document`*"]
1157    pub fn set_onmouseenter(this: &Document, value: Option<&::js_sys::Function>);
1158    #[wasm_bindgen(method, getter, js_class = "Document", js_name = "onmouseleave")]
1159    #[doc = "Getter for the `onmouseleave` field of this object."]
1160    #[doc = ""]
1161    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/onmouseleave)"]
1162    #[doc = ""]
1163    #[doc = "*This API requires the following crate features to be activated: `Document`*"]
1164    pub fn onmouseleave(this: &Document) -> Option<::js_sys::Function>;
1165    #[wasm_bindgen(method, setter, js_class = "Document", js_name = "onmouseleave")]
1166    #[doc = "Setter for the `onmouseleave` field of this object."]
1167    #[doc = ""]
1168    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/onmouseleave)"]
1169    #[doc = ""]
1170    #[doc = "*This API requires the following crate features to be activated: `Document`*"]
1171    pub fn set_onmouseleave(this: &Document, value: Option<&::js_sys::Function>);
1172    #[wasm_bindgen(method, getter, js_class = "Document", js_name = "onmousemove")]
1173    #[doc = "Getter for the `onmousemove` field of this object."]
1174    #[doc = ""]
1175    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/onmousemove)"]
1176    #[doc = ""]
1177    #[doc = "*This API requires the following crate features to be activated: `Document`*"]
1178    pub fn onmousemove(this: &Document) -> Option<::js_sys::Function>;
1179    #[wasm_bindgen(method, setter, js_class = "Document", js_name = "onmousemove")]
1180    #[doc = "Setter for the `onmousemove` field of this object."]
1181    #[doc = ""]
1182    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/onmousemove)"]
1183    #[doc = ""]
1184    #[doc = "*This API requires the following crate features to be activated: `Document`*"]
1185    pub fn set_onmousemove(this: &Document, value: Option<&::js_sys::Function>);
1186    #[wasm_bindgen(method, getter, js_class = "Document", js_name = "onmouseout")]
1187    #[doc = "Getter for the `onmouseout` field of this object."]
1188    #[doc = ""]
1189    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/onmouseout)"]
1190    #[doc = ""]
1191    #[doc = "*This API requires the following crate features to be activated: `Document`*"]
1192    pub fn onmouseout(this: &Document) -> Option<::js_sys::Function>;
1193    #[wasm_bindgen(method, setter, js_class = "Document", js_name = "onmouseout")]
1194    #[doc = "Setter for the `onmouseout` field of this object."]
1195    #[doc = ""]
1196    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/onmouseout)"]
1197    #[doc = ""]
1198    #[doc = "*This API requires the following crate features to be activated: `Document`*"]
1199    pub fn set_onmouseout(this: &Document, value: Option<&::js_sys::Function>);
1200    #[wasm_bindgen(method, getter, js_class = "Document", js_name = "onmouseover")]
1201    #[doc = "Getter for the `onmouseover` field of this object."]
1202    #[doc = ""]
1203    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/onmouseover)"]
1204    #[doc = ""]
1205    #[doc = "*This API requires the following crate features to be activated: `Document`*"]
1206    pub fn onmouseover(this: &Document) -> Option<::js_sys::Function>;
1207    #[wasm_bindgen(method, setter, js_class = "Document", js_name = "onmouseover")]
1208    #[doc = "Setter for the `onmouseover` field of this object."]
1209    #[doc = ""]
1210    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/onmouseover)"]
1211    #[doc = ""]
1212    #[doc = "*This API requires the following crate features to be activated: `Document`*"]
1213    pub fn set_onmouseover(this: &Document, value: Option<&::js_sys::Function>);
1214    #[wasm_bindgen(method, getter, js_class = "Document", js_name = "onmouseup")]
1215    #[doc = "Getter for the `onmouseup` field of this object."]
1216    #[doc = ""]
1217    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/onmouseup)"]
1218    #[doc = ""]
1219    #[doc = "*This API requires the following crate features to be activated: `Document`*"]
1220    pub fn onmouseup(this: &Document) -> Option<::js_sys::Function>;
1221    #[wasm_bindgen(method, setter, js_class = "Document", js_name = "onmouseup")]
1222    #[doc = "Setter for the `onmouseup` field of this object."]
1223    #[doc = ""]
1224    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/onmouseup)"]
1225    #[doc = ""]
1226    #[doc = "*This API requires the following crate features to be activated: `Document`*"]
1227    pub fn set_onmouseup(this: &Document, value: Option<&::js_sys::Function>);
1228    #[wasm_bindgen(method, getter, js_class = "Document", js_name = "onwheel")]
1229    #[doc = "Getter for the `onwheel` field of this object."]
1230    #[doc = ""]
1231    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/onwheel)"]
1232    #[doc = ""]
1233    #[doc = "*This API requires the following crate features to be activated: `Document`*"]
1234    pub fn onwheel(this: &Document) -> Option<::js_sys::Function>;
1235    #[wasm_bindgen(method, setter, js_class = "Document", js_name = "onwheel")]
1236    #[doc = "Setter for the `onwheel` field of this object."]
1237    #[doc = ""]
1238    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/onwheel)"]
1239    #[doc = ""]
1240    #[doc = "*This API requires the following crate features to be activated: `Document`*"]
1241    pub fn set_onwheel(this: &Document, value: Option<&::js_sys::Function>);
1242    #[wasm_bindgen(method, getter, js_class = "Document", js_name = "onpause")]
1243    #[doc = "Getter for the `onpause` field of this object."]
1244    #[doc = ""]
1245    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/onpause)"]
1246    #[doc = ""]
1247    #[doc = "*This API requires the following crate features to be activated: `Document`*"]
1248    pub fn onpause(this: &Document) -> Option<::js_sys::Function>;
1249    #[wasm_bindgen(method, setter, js_class = "Document", js_name = "onpause")]
1250    #[doc = "Setter for the `onpause` field of this object."]
1251    #[doc = ""]
1252    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/onpause)"]
1253    #[doc = ""]
1254    #[doc = "*This API requires the following crate features to be activated: `Document`*"]
1255    pub fn set_onpause(this: &Document, value: Option<&::js_sys::Function>);
1256    #[wasm_bindgen(method, getter, js_class = "Document", js_name = "onplay")]
1257    #[doc = "Getter for the `onplay` field of this object."]
1258    #[doc = ""]
1259    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/onplay)"]
1260    #[doc = ""]
1261    #[doc = "*This API requires the following crate features to be activated: `Document`*"]
1262    pub fn onplay(this: &Document) -> Option<::js_sys::Function>;
1263    #[wasm_bindgen(method, setter, js_class = "Document", js_name = "onplay")]
1264    #[doc = "Setter for the `onplay` field of this object."]
1265    #[doc = ""]
1266    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/onplay)"]
1267    #[doc = ""]
1268    #[doc = "*This API requires the following crate features to be activated: `Document`*"]
1269    pub fn set_onplay(this: &Document, value: Option<&::js_sys::Function>);
1270    #[wasm_bindgen(method, getter, js_class = "Document", js_name = "onplaying")]
1271    #[doc = "Getter for the `onplaying` field of this object."]
1272    #[doc = ""]
1273    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/onplaying)"]
1274    #[doc = ""]
1275    #[doc = "*This API requires the following crate features to be activated: `Document`*"]
1276    pub fn onplaying(this: &Document) -> Option<::js_sys::Function>;
1277    #[wasm_bindgen(method, setter, js_class = "Document", js_name = "onplaying")]
1278    #[doc = "Setter for the `onplaying` field of this object."]
1279    #[doc = ""]
1280    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/onplaying)"]
1281    #[doc = ""]
1282    #[doc = "*This API requires the following crate features to be activated: `Document`*"]
1283    pub fn set_onplaying(this: &Document, value: Option<&::js_sys::Function>);
1284    #[wasm_bindgen(method, getter, js_class = "Document", js_name = "onprogress")]
1285    #[doc = "Getter for the `onprogress` field of this object."]
1286    #[doc = ""]
1287    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/onprogress)"]
1288    #[doc = ""]
1289    #[doc = "*This API requires the following crate features to be activated: `Document`*"]
1290    pub fn onprogress(this: &Document) -> Option<::js_sys::Function>;
1291    #[wasm_bindgen(method, setter, js_class = "Document", js_name = "onprogress")]
1292    #[doc = "Setter for the `onprogress` field of this object."]
1293    #[doc = ""]
1294    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/onprogress)"]
1295    #[doc = ""]
1296    #[doc = "*This API requires the following crate features to be activated: `Document`*"]
1297    pub fn set_onprogress(this: &Document, value: Option<&::js_sys::Function>);
1298    #[wasm_bindgen(method, getter, js_class = "Document", js_name = "onratechange")]
1299    #[doc = "Getter for the `onratechange` field of this object."]
1300    #[doc = ""]
1301    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/onratechange)"]
1302    #[doc = ""]
1303    #[doc = "*This API requires the following crate features to be activated: `Document`*"]
1304    pub fn onratechange(this: &Document) -> Option<::js_sys::Function>;
1305    #[wasm_bindgen(method, setter, js_class = "Document", js_name = "onratechange")]
1306    #[doc = "Setter for the `onratechange` field of this object."]
1307    #[doc = ""]
1308    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/onratechange)"]
1309    #[doc = ""]
1310    #[doc = "*This API requires the following crate features to be activated: `Document`*"]
1311    pub fn set_onratechange(this: &Document, value: Option<&::js_sys::Function>);
1312    #[wasm_bindgen(method, getter, js_class = "Document", js_name = "onreset")]
1313    #[doc = "Getter for the `onreset` field of this object."]
1314    #[doc = ""]
1315    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/onreset)"]
1316    #[doc = ""]
1317    #[doc = "*This API requires the following crate features to be activated: `Document`*"]
1318    pub fn onreset(this: &Document) -> Option<::js_sys::Function>;
1319    #[wasm_bindgen(method, setter, js_class = "Document", js_name = "onreset")]
1320    #[doc = "Setter for the `onreset` field of this object."]
1321    #[doc = ""]
1322    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/onreset)"]
1323    #[doc = ""]
1324    #[doc = "*This API requires the following crate features to be activated: `Document`*"]
1325    pub fn set_onreset(this: &Document, value: Option<&::js_sys::Function>);
1326    #[wasm_bindgen(method, getter, js_class = "Document", js_name = "onresize")]
1327    #[doc = "Getter for the `onresize` field of this object."]
1328    #[doc = ""]
1329    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/onresize)"]
1330    #[doc = ""]
1331    #[doc = "*This API requires the following crate features to be activated: `Document`*"]
1332    pub fn onresize(this: &Document) -> Option<::js_sys::Function>;
1333    #[wasm_bindgen(method, setter, js_class = "Document", js_name = "onresize")]
1334    #[doc = "Setter for the `onresize` field of this object."]
1335    #[doc = ""]
1336    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/onresize)"]
1337    #[doc = ""]
1338    #[doc = "*This API requires the following crate features to be activated: `Document`*"]
1339    pub fn set_onresize(this: &Document, value: Option<&::js_sys::Function>);
1340    #[wasm_bindgen(method, getter, js_class = "Document", js_name = "onscroll")]
1341    #[doc = "Getter for the `onscroll` field of this object."]
1342    #[doc = ""]
1343    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/onscroll)"]
1344    #[doc = ""]
1345    #[doc = "*This API requires the following crate features to be activated: `Document`*"]
1346    pub fn onscroll(this: &Document) -> Option<::js_sys::Function>;
1347    #[wasm_bindgen(method, setter, js_class = "Document", js_name = "onscroll")]
1348    #[doc = "Setter for the `onscroll` field of this object."]
1349    #[doc = ""]
1350    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/onscroll)"]
1351    #[doc = ""]
1352    #[doc = "*This API requires the following crate features to be activated: `Document`*"]
1353    pub fn set_onscroll(this: &Document, value: Option<&::js_sys::Function>);
1354    #[wasm_bindgen(method, getter, js_class = "Document", js_name = "onseeked")]
1355    #[doc = "Getter for the `onseeked` field of this object."]
1356    #[doc = ""]
1357    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/onseeked)"]
1358    #[doc = ""]
1359    #[doc = "*This API requires the following crate features to be activated: `Document`*"]
1360    pub fn onseeked(this: &Document) -> Option<::js_sys::Function>;
1361    #[wasm_bindgen(method, setter, js_class = "Document", js_name = "onseeked")]
1362    #[doc = "Setter for the `onseeked` field of this object."]
1363    #[doc = ""]
1364    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/onseeked)"]
1365    #[doc = ""]
1366    #[doc = "*This API requires the following crate features to be activated: `Document`*"]
1367    pub fn set_onseeked(this: &Document, value: Option<&::js_sys::Function>);
1368    #[wasm_bindgen(method, getter, js_class = "Document", js_name = "onseeking")]
1369    #[doc = "Getter for the `onseeking` field of this object."]
1370    #[doc = ""]
1371    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/onseeking)"]
1372    #[doc = ""]
1373    #[doc = "*This API requires the following crate features to be activated: `Document`*"]
1374    pub fn onseeking(this: &Document) -> Option<::js_sys::Function>;
1375    #[wasm_bindgen(method, setter, js_class = "Document", js_name = "onseeking")]
1376    #[doc = "Setter for the `onseeking` field of this object."]
1377    #[doc = ""]
1378    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/onseeking)"]
1379    #[doc = ""]
1380    #[doc = "*This API requires the following crate features to be activated: `Document`*"]
1381    pub fn set_onseeking(this: &Document, value: Option<&::js_sys::Function>);
1382    #[wasm_bindgen(method, getter, js_class = "Document", js_name = "onselect")]
1383    #[doc = "Getter for the `onselect` field of this object."]
1384    #[doc = ""]
1385    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/onselect)"]
1386    #[doc = ""]
1387    #[doc = "*This API requires the following crate features to be activated: `Document`*"]
1388    pub fn onselect(this: &Document) -> Option<::js_sys::Function>;
1389    #[wasm_bindgen(method, setter, js_class = "Document", js_name = "onselect")]
1390    #[doc = "Setter for the `onselect` field of this object."]
1391    #[doc = ""]
1392    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/onselect)"]
1393    #[doc = ""]
1394    #[doc = "*This API requires the following crate features to be activated: `Document`*"]
1395    pub fn set_onselect(this: &Document, value: Option<&::js_sys::Function>);
1396    #[wasm_bindgen(method, getter, js_class = "Document", js_name = "onshow")]
1397    #[doc = "Getter for the `onshow` field of this object."]
1398    #[doc = ""]
1399    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/onshow)"]
1400    #[doc = ""]
1401    #[doc = "*This API requires the following crate features to be activated: `Document`*"]
1402    pub fn onshow(this: &Document) -> Option<::js_sys::Function>;
1403    #[wasm_bindgen(method, setter, js_class = "Document", js_name = "onshow")]
1404    #[doc = "Setter for the `onshow` field of this object."]
1405    #[doc = ""]
1406    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/onshow)"]
1407    #[doc = ""]
1408    #[doc = "*This API requires the following crate features to be activated: `Document`*"]
1409    pub fn set_onshow(this: &Document, value: Option<&::js_sys::Function>);
1410    #[wasm_bindgen(method, getter, js_class = "Document", js_name = "onstalled")]
1411    #[doc = "Getter for the `onstalled` field of this object."]
1412    #[doc = ""]
1413    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/onstalled)"]
1414    #[doc = ""]
1415    #[doc = "*This API requires the following crate features to be activated: `Document`*"]
1416    pub fn onstalled(this: &Document) -> Option<::js_sys::Function>;
1417    #[wasm_bindgen(method, setter, js_class = "Document", js_name = "onstalled")]
1418    #[doc = "Setter for the `onstalled` field of this object."]
1419    #[doc = ""]
1420    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/onstalled)"]
1421    #[doc = ""]
1422    #[doc = "*This API requires the following crate features to be activated: `Document`*"]
1423    pub fn set_onstalled(this: &Document, value: Option<&::js_sys::Function>);
1424    #[wasm_bindgen(method, getter, js_class = "Document", js_name = "onsubmit")]
1425    #[doc = "Getter for the `onsubmit` field of this object."]
1426    #[doc = ""]
1427    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/onsubmit)"]
1428    #[doc = ""]
1429    #[doc = "*This API requires the following crate features to be activated: `Document`*"]
1430    pub fn onsubmit(this: &Document) -> Option<::js_sys::Function>;
1431    #[wasm_bindgen(method, setter, js_class = "Document", js_name = "onsubmit")]
1432    #[doc = "Setter for the `onsubmit` field of this object."]
1433    #[doc = ""]
1434    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/onsubmit)"]
1435    #[doc = ""]
1436    #[doc = "*This API requires the following crate features to be activated: `Document`*"]
1437    pub fn set_onsubmit(this: &Document, value: Option<&::js_sys::Function>);
1438    #[wasm_bindgen(method, getter, js_class = "Document", js_name = "onsuspend")]
1439    #[doc = "Getter for the `onsuspend` field of this object."]
1440    #[doc = ""]
1441    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/onsuspend)"]
1442    #[doc = ""]
1443    #[doc = "*This API requires the following crate features to be activated: `Document`*"]
1444    pub fn onsuspend(this: &Document) -> Option<::js_sys::Function>;
1445    #[wasm_bindgen(method, setter, js_class = "Document", js_name = "onsuspend")]
1446    #[doc = "Setter for the `onsuspend` field of this object."]
1447    #[doc = ""]
1448    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/onsuspend)"]
1449    #[doc = ""]
1450    #[doc = "*This API requires the following crate features to be activated: `Document`*"]
1451    pub fn set_onsuspend(this: &Document, value: Option<&::js_sys::Function>);
1452    #[wasm_bindgen(method, getter, js_class = "Document", js_name = "ontimeupdate")]
1453    #[doc = "Getter for the `ontimeupdate` field of this object."]
1454    #[doc = ""]
1455    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/ontimeupdate)"]
1456    #[doc = ""]
1457    #[doc = "*This API requires the following crate features to be activated: `Document`*"]
1458    pub fn ontimeupdate(this: &Document) -> Option<::js_sys::Function>;
1459    #[wasm_bindgen(method, setter, js_class = "Document", js_name = "ontimeupdate")]
1460    #[doc = "Setter for the `ontimeupdate` field of this object."]
1461    #[doc = ""]
1462    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/ontimeupdate)"]
1463    #[doc = ""]
1464    #[doc = "*This API requires the following crate features to be activated: `Document`*"]
1465    pub fn set_ontimeupdate(this: &Document, value: Option<&::js_sys::Function>);
1466    #[wasm_bindgen(method, getter, js_class = "Document", js_name = "onvolumechange")]
1467    #[doc = "Getter for the `onvolumechange` field of this object."]
1468    #[doc = ""]
1469    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/onvolumechange)"]
1470    #[doc = ""]
1471    #[doc = "*This API requires the following crate features to be activated: `Document`*"]
1472    pub fn onvolumechange(this: &Document) -> Option<::js_sys::Function>;
1473    #[wasm_bindgen(method, setter, js_class = "Document", js_name = "onvolumechange")]
1474    #[doc = "Setter for the `onvolumechange` field of this object."]
1475    #[doc = ""]
1476    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/onvolumechange)"]
1477    #[doc = ""]
1478    #[doc = "*This API requires the following crate features to be activated: `Document`*"]
1479    pub fn set_onvolumechange(this: &Document, value: Option<&::js_sys::Function>);
1480    #[wasm_bindgen(method, getter, js_class = "Document", js_name = "onwaiting")]
1481    #[doc = "Getter for the `onwaiting` field of this object."]
1482    #[doc = ""]
1483    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/onwaiting)"]
1484    #[doc = ""]
1485    #[doc = "*This API requires the following crate features to be activated: `Document`*"]
1486    pub fn onwaiting(this: &Document) -> Option<::js_sys::Function>;
1487    #[wasm_bindgen(method, setter, js_class = "Document", js_name = "onwaiting")]
1488    #[doc = "Setter for the `onwaiting` field of this object."]
1489    #[doc = ""]
1490    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/onwaiting)"]
1491    #[doc = ""]
1492    #[doc = "*This API requires the following crate features to be activated: `Document`*"]
1493    pub fn set_onwaiting(this: &Document, value: Option<&::js_sys::Function>);
1494    #[wasm_bindgen(method, getter, js_class = "Document", js_name = "onselectstart")]
1495    #[doc = "Getter for the `onselectstart` field of this object."]
1496    #[doc = ""]
1497    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/onselectstart)"]
1498    #[doc = ""]
1499    #[doc = "*This API requires the following crate features to be activated: `Document`*"]
1500    pub fn onselectstart(this: &Document) -> Option<::js_sys::Function>;
1501    #[wasm_bindgen(method, setter, js_class = "Document", js_name = "onselectstart")]
1502    #[doc = "Setter for the `onselectstart` field of this object."]
1503    #[doc = ""]
1504    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/onselectstart)"]
1505    #[doc = ""]
1506    #[doc = "*This API requires the following crate features to be activated: `Document`*"]
1507    pub fn set_onselectstart(this: &Document, value: Option<&::js_sys::Function>);
1508    #[wasm_bindgen(method, getter, js_class = "Document", js_name = "ontoggle")]
1509    #[doc = "Getter for the `ontoggle` field of this object."]
1510    #[doc = ""]
1511    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/ontoggle)"]
1512    #[doc = ""]
1513    #[doc = "*This API requires the following crate features to be activated: `Document`*"]
1514    pub fn ontoggle(this: &Document) -> Option<::js_sys::Function>;
1515    #[wasm_bindgen(method, setter, js_class = "Document", js_name = "ontoggle")]
1516    #[doc = "Setter for the `ontoggle` field of this object."]
1517    #[doc = ""]
1518    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/ontoggle)"]
1519    #[doc = ""]
1520    #[doc = "*This API requires the following crate features to be activated: `Document`*"]
1521    pub fn set_ontoggle(this: &Document, value: Option<&::js_sys::Function>);
1522    #[wasm_bindgen(method, getter, js_class = "Document", js_name = "onpointercancel")]
1523    #[doc = "Getter for the `onpointercancel` field of this object."]
1524    #[doc = ""]
1525    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/onpointercancel)"]
1526    #[doc = ""]
1527    #[doc = "*This API requires the following crate features to be activated: `Document`*"]
1528    pub fn onpointercancel(this: &Document) -> Option<::js_sys::Function>;
1529    #[wasm_bindgen(method, setter, js_class = "Document", js_name = "onpointercancel")]
1530    #[doc = "Setter for the `onpointercancel` field of this object."]
1531    #[doc = ""]
1532    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/onpointercancel)"]
1533    #[doc = ""]
1534    #[doc = "*This API requires the following crate features to be activated: `Document`*"]
1535    pub fn set_onpointercancel(this: &Document, value: Option<&::js_sys::Function>);
1536    #[wasm_bindgen(method, getter, js_class = "Document", js_name = "onpointerdown")]
1537    #[doc = "Getter for the `onpointerdown` field of this object."]
1538    #[doc = ""]
1539    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/onpointerdown)"]
1540    #[doc = ""]
1541    #[doc = "*This API requires the following crate features to be activated: `Document`*"]
1542    pub fn onpointerdown(this: &Document) -> Option<::js_sys::Function>;
1543    #[wasm_bindgen(method, setter, js_class = "Document", js_name = "onpointerdown")]
1544    #[doc = "Setter for the `onpointerdown` field of this object."]
1545    #[doc = ""]
1546    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/onpointerdown)"]
1547    #[doc = ""]
1548    #[doc = "*This API requires the following crate features to be activated: `Document`*"]
1549    pub fn set_onpointerdown(this: &Document, value: Option<&::js_sys::Function>);
1550    #[wasm_bindgen(method, getter, js_class = "Document", js_name = "onpointerup")]
1551    #[doc = "Getter for the `onpointerup` field of this object."]
1552    #[doc = ""]
1553    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/onpointerup)"]
1554    #[doc = ""]
1555    #[doc = "*This API requires the following crate features to be activated: `Document`*"]
1556    pub fn onpointerup(this: &Document) -> Option<::js_sys::Function>;
1557    #[wasm_bindgen(method, setter, js_class = "Document", js_name = "onpointerup")]
1558    #[doc = "Setter for the `onpointerup` field of this object."]
1559    #[doc = ""]
1560    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/onpointerup)"]
1561    #[doc = ""]
1562    #[doc = "*This API requires the following crate features to be activated: `Document`*"]
1563    pub fn set_onpointerup(this: &Document, value: Option<&::js_sys::Function>);
1564    #[wasm_bindgen(method, getter, js_class = "Document", js_name = "onpointermove")]
1565    #[doc = "Getter for the `onpointermove` field of this object."]
1566    #[doc = ""]
1567    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/onpointermove)"]
1568    #[doc = ""]
1569    #[doc = "*This API requires the following crate features to be activated: `Document`*"]
1570    pub fn onpointermove(this: &Document) -> Option<::js_sys::Function>;
1571    #[wasm_bindgen(method, setter, js_class = "Document", js_name = "onpointermove")]
1572    #[doc = "Setter for the `onpointermove` field of this object."]
1573    #[doc = ""]
1574    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/onpointermove)"]
1575    #[doc = ""]
1576    #[doc = "*This API requires the following crate features to be activated: `Document`*"]
1577    pub fn set_onpointermove(this: &Document, value: Option<&::js_sys::Function>);
1578    #[wasm_bindgen(method, getter, js_class = "Document", js_name = "onpointerout")]
1579    #[doc = "Getter for the `onpointerout` field of this object."]
1580    #[doc = ""]
1581    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/onpointerout)"]
1582    #[doc = ""]
1583    #[doc = "*This API requires the following crate features to be activated: `Document`*"]
1584    pub fn onpointerout(this: &Document) -> Option<::js_sys::Function>;
1585    #[wasm_bindgen(method, setter, js_class = "Document", js_name = "onpointerout")]
1586    #[doc = "Setter for the `onpointerout` field of this object."]
1587    #[doc = ""]
1588    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/onpointerout)"]
1589    #[doc = ""]
1590    #[doc = "*This API requires the following crate features to be activated: `Document`*"]
1591    pub fn set_onpointerout(this: &Document, value: Option<&::js_sys::Function>);
1592    #[wasm_bindgen(method, getter, js_class = "Document", js_name = "onpointerover")]
1593    #[doc = "Getter for the `onpointerover` field of this object."]
1594    #[doc = ""]
1595    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/onpointerover)"]
1596    #[doc = ""]
1597    #[doc = "*This API requires the following crate features to be activated: `Document`*"]
1598    pub fn onpointerover(this: &Document) -> Option<::js_sys::Function>;
1599    #[wasm_bindgen(method, setter, js_class = "Document", js_name = "onpointerover")]
1600    #[doc = "Setter for the `onpointerover` field of this object."]
1601    #[doc = ""]
1602    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/onpointerover)"]
1603    #[doc = ""]
1604    #[doc = "*This API requires the following crate features to be activated: `Document`*"]
1605    pub fn set_onpointerover(this: &Document, value: Option<&::js_sys::Function>);
1606    #[wasm_bindgen(method, getter, js_class = "Document", js_name = "onpointerenter")]
1607    #[doc = "Getter for the `onpointerenter` field of this object."]
1608    #[doc = ""]
1609    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/onpointerenter)"]
1610    #[doc = ""]
1611    #[doc = "*This API requires the following crate features to be activated: `Document`*"]
1612    pub fn onpointerenter(this: &Document) -> Option<::js_sys::Function>;
1613    #[wasm_bindgen(method, setter, js_class = "Document", js_name = "onpointerenter")]
1614    #[doc = "Setter for the `onpointerenter` field of this object."]
1615    #[doc = ""]
1616    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/onpointerenter)"]
1617    #[doc = ""]
1618    #[doc = "*This API requires the following crate features to be activated: `Document`*"]
1619    pub fn set_onpointerenter(this: &Document, value: Option<&::js_sys::Function>);
1620    #[wasm_bindgen(method, getter, js_class = "Document", js_name = "onpointerleave")]
1621    #[doc = "Getter for the `onpointerleave` field of this object."]
1622    #[doc = ""]
1623    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/onpointerleave)"]
1624    #[doc = ""]
1625    #[doc = "*This API requires the following crate features to be activated: `Document`*"]
1626    pub fn onpointerleave(this: &Document) -> Option<::js_sys::Function>;
1627    #[wasm_bindgen(method, setter, js_class = "Document", js_name = "onpointerleave")]
1628    #[doc = "Setter for the `onpointerleave` field of this object."]
1629    #[doc = ""]
1630    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/onpointerleave)"]
1631    #[doc = ""]
1632    #[doc = "*This API requires the following crate features to be activated: `Document`*"]
1633    pub fn set_onpointerleave(this: &Document, value: Option<&::js_sys::Function>);
1634    #[wasm_bindgen(method, getter, js_class = "Document", js_name = "ongotpointercapture")]
1635    #[doc = "Getter for the `ongotpointercapture` field of this object."]
1636    #[doc = ""]
1637    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/ongotpointercapture)"]
1638    #[doc = ""]
1639    #[doc = "*This API requires the following crate features to be activated: `Document`*"]
1640    pub fn ongotpointercapture(this: &Document) -> Option<::js_sys::Function>;
1641    #[wasm_bindgen(method, setter, js_class = "Document", js_name = "ongotpointercapture")]
1642    #[doc = "Setter for the `ongotpointercapture` field of this object."]
1643    #[doc = ""]
1644    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/ongotpointercapture)"]
1645    #[doc = ""]
1646    #[doc = "*This API requires the following crate features to be activated: `Document`*"]
1647    pub fn set_ongotpointercapture(this: &Document, value: Option<&::js_sys::Function>);
1648    #[wasm_bindgen(
1649        method,
1650        getter,
1651        js_class = "Document",
1652        js_name = "onlostpointercapture"
1653    )]
1654    #[doc = "Getter for the `onlostpointercapture` field of this object."]
1655    #[doc = ""]
1656    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/onlostpointercapture)"]
1657    #[doc = ""]
1658    #[doc = "*This API requires the following crate features to be activated: `Document`*"]
1659    pub fn onlostpointercapture(this: &Document) -> Option<::js_sys::Function>;
1660    #[wasm_bindgen(
1661        method,
1662        setter,
1663        js_class = "Document",
1664        js_name = "onlostpointercapture"
1665    )]
1666    #[doc = "Setter for the `onlostpointercapture` field of this object."]
1667    #[doc = ""]
1668    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/onlostpointercapture)"]
1669    #[doc = ""]
1670    #[doc = "*This API requires the following crate features to be activated: `Document`*"]
1671    pub fn set_onlostpointercapture(this: &Document, value: Option<&::js_sys::Function>);
1672    #[wasm_bindgen(method, getter, js_class = "Document", js_name = "onanimationcancel")]
1673    #[doc = "Getter for the `onanimationcancel` field of this object."]
1674    #[doc = ""]
1675    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/onanimationcancel)"]
1676    #[doc = ""]
1677    #[doc = "*This API requires the following crate features to be activated: `Document`*"]
1678    pub fn onanimationcancel(this: &Document) -> Option<::js_sys::Function>;
1679    #[wasm_bindgen(method, setter, js_class = "Document", js_name = "onanimationcancel")]
1680    #[doc = "Setter for the `onanimationcancel` field of this object."]
1681    #[doc = ""]
1682    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/onanimationcancel)"]
1683    #[doc = ""]
1684    #[doc = "*This API requires the following crate features to be activated: `Document`*"]
1685    pub fn set_onanimationcancel(this: &Document, value: Option<&::js_sys::Function>);
1686    #[wasm_bindgen(method, getter, js_class = "Document", js_name = "onanimationend")]
1687    #[doc = "Getter for the `onanimationend` field of this object."]
1688    #[doc = ""]
1689    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/onanimationend)"]
1690    #[doc = ""]
1691    #[doc = "*This API requires the following crate features to be activated: `Document`*"]
1692    pub fn onanimationend(this: &Document) -> Option<::js_sys::Function>;
1693    #[wasm_bindgen(method, setter, js_class = "Document", js_name = "onanimationend")]
1694    #[doc = "Setter for the `onanimationend` field of this object."]
1695    #[doc = ""]
1696    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/onanimationend)"]
1697    #[doc = ""]
1698    #[doc = "*This API requires the following crate features to be activated: `Document`*"]
1699    pub fn set_onanimationend(this: &Document, value: Option<&::js_sys::Function>);
1700    #[wasm_bindgen(
1701        method,
1702        getter,
1703        js_class = "Document",
1704        js_name = "onanimationiteration"
1705    )]
1706    #[doc = "Getter for the `onanimationiteration` field of this object."]
1707    #[doc = ""]
1708    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/onanimationiteration)"]
1709    #[doc = ""]
1710    #[doc = "*This API requires the following crate features to be activated: `Document`*"]
1711    pub fn onanimationiteration(this: &Document) -> Option<::js_sys::Function>;
1712    #[wasm_bindgen(
1713        method,
1714        setter,
1715        js_class = "Document",
1716        js_name = "onanimationiteration"
1717    )]
1718    #[doc = "Setter for the `onanimationiteration` field of this object."]
1719    #[doc = ""]
1720    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/onanimationiteration)"]
1721    #[doc = ""]
1722    #[doc = "*This API requires the following crate features to be activated: `Document`*"]
1723    pub fn set_onanimationiteration(this: &Document, value: Option<&::js_sys::Function>);
1724    #[wasm_bindgen(method, getter, js_class = "Document", js_name = "onanimationstart")]
1725    #[doc = "Getter for the `onanimationstart` field of this object."]
1726    #[doc = ""]
1727    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/onanimationstart)"]
1728    #[doc = ""]
1729    #[doc = "*This API requires the following crate features to be activated: `Document`*"]
1730    pub fn onanimationstart(this: &Document) -> Option<::js_sys::Function>;
1731    #[wasm_bindgen(method, setter, js_class = "Document", js_name = "onanimationstart")]
1732    #[doc = "Setter for the `onanimationstart` field of this object."]
1733    #[doc = ""]
1734    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/onanimationstart)"]
1735    #[doc = ""]
1736    #[doc = "*This API requires the following crate features to be activated: `Document`*"]
1737    pub fn set_onanimationstart(this: &Document, value: Option<&::js_sys::Function>);
1738    #[wasm_bindgen(method, getter, js_class = "Document", js_name = "ontransitioncancel")]
1739    #[doc = "Getter for the `ontransitioncancel` field of this object."]
1740    #[doc = ""]
1741    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/ontransitioncancel)"]
1742    #[doc = ""]
1743    #[doc = "*This API requires the following crate features to be activated: `Document`*"]
1744    pub fn ontransitioncancel(this: &Document) -> Option<::js_sys::Function>;
1745    #[wasm_bindgen(method, setter, js_class = "Document", js_name = "ontransitioncancel")]
1746    #[doc = "Setter for the `ontransitioncancel` field of this object."]
1747    #[doc = ""]
1748    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/ontransitioncancel)"]
1749    #[doc = ""]
1750    #[doc = "*This API requires the following crate features to be activated: `Document`*"]
1751    pub fn set_ontransitioncancel(this: &Document, value: Option<&::js_sys::Function>);
1752    #[wasm_bindgen(method, getter, js_class = "Document", js_name = "ontransitionend")]
1753    #[doc = "Getter for the `ontransitionend` field of this object."]
1754    #[doc = ""]
1755    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/ontransitionend)"]
1756    #[doc = ""]
1757    #[doc = "*This API requires the following crate features to be activated: `Document`*"]
1758    pub fn ontransitionend(this: &Document) -> Option<::js_sys::Function>;
1759    #[wasm_bindgen(method, setter, js_class = "Document", js_name = "ontransitionend")]
1760    #[doc = "Setter for the `ontransitionend` field of this object."]
1761    #[doc = ""]
1762    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/ontransitionend)"]
1763    #[doc = ""]
1764    #[doc = "*This API requires the following crate features to be activated: `Document`*"]
1765    pub fn set_ontransitionend(this: &Document, value: Option<&::js_sys::Function>);
1766    #[wasm_bindgen(method, getter, js_class = "Document", js_name = "ontransitionrun")]
1767    #[doc = "Getter for the `ontransitionrun` field of this object."]
1768    #[doc = ""]
1769    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/ontransitionrun)"]
1770    #[doc = ""]
1771    #[doc = "*This API requires the following crate features to be activated: `Document`*"]
1772    pub fn ontransitionrun(this: &Document) -> Option<::js_sys::Function>;
1773    #[wasm_bindgen(method, setter, js_class = "Document", js_name = "ontransitionrun")]
1774    #[doc = "Setter for the `ontransitionrun` field of this object."]
1775    #[doc = ""]
1776    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/ontransitionrun)"]
1777    #[doc = ""]
1778    #[doc = "*This API requires the following crate features to be activated: `Document`*"]
1779    pub fn set_ontransitionrun(this: &Document, value: Option<&::js_sys::Function>);
1780    #[wasm_bindgen(method, getter, js_class = "Document", js_name = "ontransitionstart")]
1781    #[doc = "Getter for the `ontransitionstart` field of this object."]
1782    #[doc = ""]
1783    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/ontransitionstart)"]
1784    #[doc = ""]
1785    #[doc = "*This API requires the following crate features to be activated: `Document`*"]
1786    pub fn ontransitionstart(this: &Document) -> Option<::js_sys::Function>;
1787    #[wasm_bindgen(method, setter, js_class = "Document", js_name = "ontransitionstart")]
1788    #[doc = "Setter for the `ontransitionstart` field of this object."]
1789    #[doc = ""]
1790    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/ontransitionstart)"]
1791    #[doc = ""]
1792    #[doc = "*This API requires the following crate features to be activated: `Document`*"]
1793    pub fn set_ontransitionstart(this: &Document, value: Option<&::js_sys::Function>);
1794    #[wasm_bindgen(
1795        method,
1796        getter,
1797        js_class = "Document",
1798        js_name = "onwebkitanimationend"
1799    )]
1800    #[doc = "Getter for the `onwebkitanimationend` field of this object."]
1801    #[doc = ""]
1802    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/onwebkitanimationend)"]
1803    #[doc = ""]
1804    #[doc = "*This API requires the following crate features to be activated: `Document`*"]
1805    pub fn onwebkitanimationend(this: &Document) -> Option<::js_sys::Function>;
1806    #[wasm_bindgen(
1807        method,
1808        setter,
1809        js_class = "Document",
1810        js_name = "onwebkitanimationend"
1811    )]
1812    #[doc = "Setter for the `onwebkitanimationend` field of this object."]
1813    #[doc = ""]
1814    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/onwebkitanimationend)"]
1815    #[doc = ""]
1816    #[doc = "*This API requires the following crate features to be activated: `Document`*"]
1817    pub fn set_onwebkitanimationend(this: &Document, value: Option<&::js_sys::Function>);
1818    #[wasm_bindgen(
1819        method,
1820        getter,
1821        js_class = "Document",
1822        js_name = "onwebkitanimationiteration"
1823    )]
1824    #[doc = "Getter for the `onwebkitanimationiteration` field of this object."]
1825    #[doc = ""]
1826    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/onwebkitanimationiteration)"]
1827    #[doc = ""]
1828    #[doc = "*This API requires the following crate features to be activated: `Document`*"]
1829    pub fn onwebkitanimationiteration(this: &Document) -> Option<::js_sys::Function>;
1830    #[wasm_bindgen(
1831        method,
1832        setter,
1833        js_class = "Document",
1834        js_name = "onwebkitanimationiteration"
1835    )]
1836    #[doc = "Setter for the `onwebkitanimationiteration` field of this object."]
1837    #[doc = ""]
1838    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/onwebkitanimationiteration)"]
1839    #[doc = ""]
1840    #[doc = "*This API requires the following crate features to be activated: `Document`*"]
1841    pub fn set_onwebkitanimationiteration(this: &Document, value: Option<&::js_sys::Function>);
1842    #[wasm_bindgen(
1843        method,
1844        getter,
1845        js_class = "Document",
1846        js_name = "onwebkitanimationstart"
1847    )]
1848    #[doc = "Getter for the `onwebkitanimationstart` field of this object."]
1849    #[doc = ""]
1850    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/onwebkitanimationstart)"]
1851    #[doc = ""]
1852    #[doc = "*This API requires the following crate features to be activated: `Document`*"]
1853    pub fn onwebkitanimationstart(this: &Document) -> Option<::js_sys::Function>;
1854    #[wasm_bindgen(
1855        method,
1856        setter,
1857        js_class = "Document",
1858        js_name = "onwebkitanimationstart"
1859    )]
1860    #[doc = "Setter for the `onwebkitanimationstart` field of this object."]
1861    #[doc = ""]
1862    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/onwebkitanimationstart)"]
1863    #[doc = ""]
1864    #[doc = "*This API requires the following crate features to be activated: `Document`*"]
1865    pub fn set_onwebkitanimationstart(this: &Document, value: Option<&::js_sys::Function>);
1866    #[wasm_bindgen(
1867        method,
1868        getter,
1869        js_class = "Document",
1870        js_name = "onwebkittransitionend"
1871    )]
1872    #[doc = "Getter for the `onwebkittransitionend` field of this object."]
1873    #[doc = ""]
1874    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/onwebkittransitionend)"]
1875    #[doc = ""]
1876    #[doc = "*This API requires the following crate features to be activated: `Document`*"]
1877    pub fn onwebkittransitionend(this: &Document) -> Option<::js_sys::Function>;
1878    #[wasm_bindgen(
1879        method,
1880        setter,
1881        js_class = "Document",
1882        js_name = "onwebkittransitionend"
1883    )]
1884    #[doc = "Setter for the `onwebkittransitionend` field of this object."]
1885    #[doc = ""]
1886    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/onwebkittransitionend)"]
1887    #[doc = ""]
1888    #[doc = "*This API requires the following crate features to be activated: `Document`*"]
1889    pub fn set_onwebkittransitionend(this: &Document, value: Option<&::js_sys::Function>);
1890    #[wasm_bindgen(method, getter, js_class = "Document", js_name = "onerror")]
1891    #[doc = "Getter for the `onerror` field of this object."]
1892    #[doc = ""]
1893    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/onerror)"]
1894    #[doc = ""]
1895    #[doc = "*This API requires the following crate features to be activated: `Document`*"]
1896    pub fn onerror(this: &Document) -> Option<::js_sys::Function>;
1897    #[wasm_bindgen(method, setter, js_class = "Document", js_name = "onerror")]
1898    #[doc = "Setter for the `onerror` field of this object."]
1899    #[doc = ""]
1900    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/onerror)"]
1901    #[doc = ""]
1902    #[doc = "*This API requires the following crate features to be activated: `Document`*"]
1903    pub fn set_onerror(this: &Document, value: Option<&::js_sys::Function>);
1904    #[cfg(feature = "HtmlCollection")]
1905    #[wasm_bindgen(method, getter, js_class = "Document", js_name = "children")]
1906    #[doc = "Getter for the `children` field of this object."]
1907    #[doc = ""]
1908    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/children)"]
1909    #[doc = ""]
1910    #[doc = "*This API requires the following crate features to be activated: `Document`, `HtmlCollection`*"]
1911    pub fn children(this: &Document) -> HtmlCollection;
1912    #[cfg(feature = "Element")]
1913    #[wasm_bindgen(method, getter, js_class = "Document", js_name = "firstElementChild")]
1914    #[doc = "Getter for the `firstElementChild` field of this object."]
1915    #[doc = ""]
1916    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/firstElementChild)"]
1917    #[doc = ""]
1918    #[doc = "*This API requires the following crate features to be activated: `Document`, `Element`*"]
1919    pub fn first_element_child(this: &Document) -> Option<Element>;
1920    #[cfg(feature = "Element")]
1921    #[wasm_bindgen(method, getter, js_class = "Document", js_name = "lastElementChild")]
1922    #[doc = "Getter for the `lastElementChild` field of this object."]
1923    #[doc = ""]
1924    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/lastElementChild)"]
1925    #[doc = ""]
1926    #[doc = "*This API requires the following crate features to be activated: `Document`, `Element`*"]
1927    pub fn last_element_child(this: &Document) -> Option<Element>;
1928    #[wasm_bindgen(method, getter, js_class = "Document", js_name = "childElementCount")]
1929    #[doc = "Getter for the `childElementCount` field of this object."]
1930    #[doc = ""]
1931    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/childElementCount)"]
1932    #[doc = ""]
1933    #[doc = "*This API requires the following crate features to be activated: `Document`*"]
1934    pub fn child_element_count(this: &Document) -> u32;
1935    #[wasm_bindgen(method, getter, js_class = "Document", js_name = "ontouchstart")]
1936    #[doc = "Getter for the `ontouchstart` field of this object."]
1937    #[doc = ""]
1938    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/ontouchstart)"]
1939    #[doc = ""]
1940    #[doc = "*This API requires the following crate features to be activated: `Document`*"]
1941    pub fn ontouchstart(this: &Document) -> Option<::js_sys::Function>;
1942    #[wasm_bindgen(method, setter, js_class = "Document", js_name = "ontouchstart")]
1943    #[doc = "Setter for the `ontouchstart` field of this object."]
1944    #[doc = ""]
1945    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/ontouchstart)"]
1946    #[doc = ""]
1947    #[doc = "*This API requires the following crate features to be activated: `Document`*"]
1948    pub fn set_ontouchstart(this: &Document, value: Option<&::js_sys::Function>);
1949    #[wasm_bindgen(method, getter, js_class = "Document", js_name = "ontouchend")]
1950    #[doc = "Getter for the `ontouchend` field of this object."]
1951    #[doc = ""]
1952    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/ontouchend)"]
1953    #[doc = ""]
1954    #[doc = "*This API requires the following crate features to be activated: `Document`*"]
1955    pub fn ontouchend(this: &Document) -> Option<::js_sys::Function>;
1956    #[wasm_bindgen(method, setter, js_class = "Document", js_name = "ontouchend")]
1957    #[doc = "Setter for the `ontouchend` field of this object."]
1958    #[doc = ""]
1959    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/ontouchend)"]
1960    #[doc = ""]
1961    #[doc = "*This API requires the following crate features to be activated: `Document`*"]
1962    pub fn set_ontouchend(this: &Document, value: Option<&::js_sys::Function>);
1963    #[wasm_bindgen(method, getter, js_class = "Document", js_name = "ontouchmove")]
1964    #[doc = "Getter for the `ontouchmove` field of this object."]
1965    #[doc = ""]
1966    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/ontouchmove)"]
1967    #[doc = ""]
1968    #[doc = "*This API requires the following crate features to be activated: `Document`*"]
1969    pub fn ontouchmove(this: &Document) -> Option<::js_sys::Function>;
1970    #[wasm_bindgen(method, setter, js_class = "Document", js_name = "ontouchmove")]
1971    #[doc = "Setter for the `ontouchmove` field of this object."]
1972    #[doc = ""]
1973    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/ontouchmove)"]
1974    #[doc = ""]
1975    #[doc = "*This API requires the following crate features to be activated: `Document`*"]
1976    pub fn set_ontouchmove(this: &Document, value: Option<&::js_sys::Function>);
1977    #[wasm_bindgen(method, getter, js_class = "Document", js_name = "ontouchcancel")]
1978    #[doc = "Getter for the `ontouchcancel` field of this object."]
1979    #[doc = ""]
1980    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/ontouchcancel)"]
1981    #[doc = ""]
1982    #[doc = "*This API requires the following crate features to be activated: `Document`*"]
1983    pub fn ontouchcancel(this: &Document) -> Option<::js_sys::Function>;
1984    #[wasm_bindgen(method, setter, js_class = "Document", js_name = "ontouchcancel")]
1985    #[doc = "Setter for the `ontouchcancel` field of this object."]
1986    #[doc = ""]
1987    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/ontouchcancel)"]
1988    #[doc = ""]
1989    #[doc = "*This API requires the following crate features to be activated: `Document`*"]
1990    pub fn set_ontouchcancel(this: &Document, value: Option<&::js_sys::Function>);
1991    #[wasm_bindgen(catch, constructor, js_class = "Document")]
1992    #[doc = "The `new Document(..)` constructor, creating a new instance of `Document`."]
1993    #[doc = ""]
1994    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/Document)"]
1995    #[doc = ""]
1996    #[doc = "*This API requires the following crate features to be activated: `Document`*"]
1997    pub fn new() -> Result<Document, JsValue>;
1998    #[wasm_bindgen(catch, method, js_class = "Document", js_name = "adoptNode")]
1999    #[doc = "The `adoptNode()` method."]
2000    #[doc = ""]
2001    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/adoptNode)"]
2002    #[doc = ""]
2003    #[doc = "*This API requires the following crate features to be activated: `Document`*"]
2004    pub fn adopt_node(this: &Document, node: &Node) -> Result<Node, JsValue>;
2005    #[cfg(feature = "CaretPosition")]
2006    #[wasm_bindgen(method, js_class = "Document", js_name = "caretPositionFromPoint")]
2007    #[doc = "The `caretPositionFromPoint()` method."]
2008    #[doc = ""]
2009    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/caretPositionFromPoint)"]
2010    #[doc = ""]
2011    #[doc = "*This API requires the following crate features to be activated: `CaretPosition`, `Document`*"]
2012    pub fn caret_position_from_point(this: &Document, x: f32, y: f32) -> Option<CaretPosition>;
2013    #[cfg(feature = "Attr")]
2014    #[wasm_bindgen(catch, method, js_class = "Document", js_name = "createAttribute")]
2015    #[doc = "The `createAttribute()` method."]
2016    #[doc = ""]
2017    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/createAttribute)"]
2018    #[doc = ""]
2019    #[doc = "*This API requires the following crate features to be activated: `Attr`, `Document`*"]
2020    pub fn create_attribute(this: &Document, name: &str) -> Result<Attr, JsValue>;
2021    #[cfg(feature = "Attr")]
2022    #[wasm_bindgen(catch, method, js_class = "Document", js_name = "createAttributeNS")]
2023    #[doc = "The `createAttributeNS()` method."]
2024    #[doc = ""]
2025    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/createAttributeNS)"]
2026    #[doc = ""]
2027    #[doc = "*This API requires the following crate features to be activated: `Attr`, `Document`*"]
2028    pub fn create_attribute_ns(
2029        this: &Document,
2030        namespace: Option<&str>,
2031        name: &str,
2032    ) -> Result<Attr, JsValue>;
2033    #[cfg(feature = "CdataSection")]
2034    #[wasm_bindgen(catch, method, js_class = "Document", js_name = "createCDATASection")]
2035    #[doc = "The `createCDATASection()` method."]
2036    #[doc = ""]
2037    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/createCDATASection)"]
2038    #[doc = ""]
2039    #[doc = "*This API requires the following crate features to be activated: `CdataSection`, `Document`*"]
2040    pub fn create_cdata_section(this: &Document, data: &str) -> Result<CdataSection, JsValue>;
2041    #[cfg(feature = "Comment")]
2042    #[wasm_bindgen(method, js_class = "Document", js_name = "createComment")]
2043    #[doc = "The `createComment()` method."]
2044    #[doc = ""]
2045    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/createComment)"]
2046    #[doc = ""]
2047    #[doc = "*This API requires the following crate features to be activated: `Comment`, `Document`*"]
2048    pub fn create_comment(this: &Document, data: &str) -> Comment;
2049    #[cfg(feature = "DocumentFragment")]
2050    #[wasm_bindgen(method, js_class = "Document", js_name = "createDocumentFragment")]
2051    #[doc = "The `createDocumentFragment()` method."]
2052    #[doc = ""]
2053    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/createDocumentFragment)"]
2054    #[doc = ""]
2055    #[doc = "*This API requires the following crate features to be activated: `Document`, `DocumentFragment`*"]
2056    pub fn create_document_fragment(this: &Document) -> DocumentFragment;
2057    #[cfg(feature = "Element")]
2058    #[wasm_bindgen(catch, method, js_class = "Document", js_name = "createElement")]
2059    #[doc = "The `createElement()` method."]
2060    #[doc = ""]
2061    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/createElement)"]
2062    #[doc = ""]
2063    #[doc = "*This API requires the following crate features to be activated: `Document`, `Element`*"]
2064    pub fn create_element(this: &Document, local_name: &str) -> Result<Element, JsValue>;
2065    #[cfg(all(feature = "Element", feature = "ElementCreationOptions",))]
2066    #[wasm_bindgen(catch, method, js_class = "Document", js_name = "createElement")]
2067    #[doc = "The `createElement()` method."]
2068    #[doc = ""]
2069    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/createElement)"]
2070    #[doc = ""]
2071    #[doc = "*This API requires the following crate features to be activated: `Document`, `Element`, `ElementCreationOptions`*"]
2072    pub fn create_element_with_element_creation_options(
2073        this: &Document,
2074        local_name: &str,
2075        options: &ElementCreationOptions,
2076    ) -> Result<Element, JsValue>;
2077    #[cfg(feature = "Element")]
2078    #[wasm_bindgen(catch, method, js_class = "Document", js_name = "createElement")]
2079    #[doc = "The `createElement()` method."]
2080    #[doc = ""]
2081    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/createElement)"]
2082    #[doc = ""]
2083    #[doc = "*This API requires the following crate features to be activated: `Document`, `Element`*"]
2084    pub fn create_element_with_str(
2085        this: &Document,
2086        local_name: &str,
2087        options: &str,
2088    ) -> Result<Element, JsValue>;
2089    #[cfg(feature = "Element")]
2090    #[wasm_bindgen(catch, method, js_class = "Document", js_name = "createElementNS")]
2091    #[doc = "The `createElementNS()` method."]
2092    #[doc = ""]
2093    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/createElementNS)"]
2094    #[doc = ""]
2095    #[doc = "*This API requires the following crate features to be activated: `Document`, `Element`*"]
2096    pub fn create_element_ns(
2097        this: &Document,
2098        namespace: Option<&str>,
2099        qualified_name: &str,
2100    ) -> Result<Element, JsValue>;
2101    #[cfg(all(feature = "Element", feature = "ElementCreationOptions",))]
2102    #[wasm_bindgen(catch, method, js_class = "Document", js_name = "createElementNS")]
2103    #[doc = "The `createElementNS()` method."]
2104    #[doc = ""]
2105    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/createElementNS)"]
2106    #[doc = ""]
2107    #[doc = "*This API requires the following crate features to be activated: `Document`, `Element`, `ElementCreationOptions`*"]
2108    pub fn create_element_ns_with_element_creation_options(
2109        this: &Document,
2110        namespace: Option<&str>,
2111        qualified_name: &str,
2112        options: &ElementCreationOptions,
2113    ) -> Result<Element, JsValue>;
2114    #[cfg(feature = "Element")]
2115    #[wasm_bindgen(catch, method, js_class = "Document", js_name = "createElementNS")]
2116    #[doc = "The `createElementNS()` method."]
2117    #[doc = ""]
2118    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/createElementNS)"]
2119    #[doc = ""]
2120    #[doc = "*This API requires the following crate features to be activated: `Document`, `Element`*"]
2121    pub fn create_element_ns_with_str(
2122        this: &Document,
2123        namespace: Option<&str>,
2124        qualified_name: &str,
2125        options: &str,
2126    ) -> Result<Element, JsValue>;
2127    #[cfg(feature = "Event")]
2128    #[wasm_bindgen(catch, method, js_class = "Document", js_name = "createEvent")]
2129    #[doc = "The `createEvent()` method."]
2130    #[doc = ""]
2131    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/createEvent)"]
2132    #[doc = ""]
2133    #[doc = "*This API requires the following crate features to be activated: `Document`, `Event`*"]
2134    pub fn create_event(this: &Document, interface: &str) -> Result<Event, JsValue>;
2135    #[cfg(feature = "NodeIterator")]
2136    #[wasm_bindgen(catch, method, js_class = "Document", js_name = "createNodeIterator")]
2137    #[doc = "The `createNodeIterator()` method."]
2138    #[doc = ""]
2139    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/createNodeIterator)"]
2140    #[doc = ""]
2141    #[doc = "*This API requires the following crate features to be activated: `Document`, `NodeIterator`*"]
2142    pub fn create_node_iterator(this: &Document, root: &Node) -> Result<NodeIterator, JsValue>;
2143    #[cfg(feature = "NodeIterator")]
2144    #[wasm_bindgen(catch, method, js_class = "Document", js_name = "createNodeIterator")]
2145    #[doc = "The `createNodeIterator()` method."]
2146    #[doc = ""]
2147    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/createNodeIterator)"]
2148    #[doc = ""]
2149    #[doc = "*This API requires the following crate features to be activated: `Document`, `NodeIterator`*"]
2150    pub fn create_node_iterator_with_what_to_show(
2151        this: &Document,
2152        root: &Node,
2153        what_to_show: u32,
2154    ) -> Result<NodeIterator, JsValue>;
2155    #[cfg(all(feature = "NodeFilter", feature = "NodeIterator",))]
2156    #[wasm_bindgen(catch, method, js_class = "Document", js_name = "createNodeIterator")]
2157    #[doc = "The `createNodeIterator()` method."]
2158    #[doc = ""]
2159    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/createNodeIterator)"]
2160    #[doc = ""]
2161    #[doc = "*This API requires the following crate features to be activated: `Document`, `NodeFilter`, `NodeIterator`*"]
2162    pub fn create_node_iterator_with_what_to_show_and_filter(
2163        this: &Document,
2164        root: &Node,
2165        what_to_show: u32,
2166        filter: Option<&NodeFilter>,
2167    ) -> Result<NodeIterator, JsValue>;
2168    #[cfg(feature = "ProcessingInstruction")]
2169    #[wasm_bindgen(
2170        catch,
2171        method,
2172        js_class = "Document",
2173        js_name = "createProcessingInstruction"
2174    )]
2175    #[doc = "The `createProcessingInstruction()` method."]
2176    #[doc = ""]
2177    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/createProcessingInstruction)"]
2178    #[doc = ""]
2179    #[doc = "*This API requires the following crate features to be activated: `Document`, `ProcessingInstruction`*"]
2180    pub fn create_processing_instruction(
2181        this: &Document,
2182        target: &str,
2183        data: &str,
2184    ) -> Result<ProcessingInstruction, JsValue>;
2185    #[cfg(feature = "Range")]
2186    #[wasm_bindgen(catch, method, js_class = "Document", js_name = "createRange")]
2187    #[doc = "The `createRange()` method."]
2188    #[doc = ""]
2189    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/createRange)"]
2190    #[doc = ""]
2191    #[doc = "*This API requires the following crate features to be activated: `Document`, `Range`*"]
2192    pub fn create_range(this: &Document) -> Result<Range, JsValue>;
2193    #[cfg(feature = "Text")]
2194    #[wasm_bindgen(method, js_class = "Document", js_name = "createTextNode")]
2195    #[doc = "The `createTextNode()` method."]
2196    #[doc = ""]
2197    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/createTextNode)"]
2198    #[doc = ""]
2199    #[doc = "*This API requires the following crate features to be activated: `Document`, `Text`*"]
2200    pub fn create_text_node(this: &Document, data: &str) -> Text;
2201    #[cfg(feature = "TreeWalker")]
2202    #[wasm_bindgen(catch, method, js_class = "Document", js_name = "createTreeWalker")]
2203    #[doc = "The `createTreeWalker()` method."]
2204    #[doc = ""]
2205    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/createTreeWalker)"]
2206    #[doc = ""]
2207    #[doc = "*This API requires the following crate features to be activated: `Document`, `TreeWalker`*"]
2208    pub fn create_tree_walker(this: &Document, root: &Node) -> Result<TreeWalker, JsValue>;
2209    #[cfg(feature = "TreeWalker")]
2210    #[wasm_bindgen(catch, method, js_class = "Document", js_name = "createTreeWalker")]
2211    #[doc = "The `createTreeWalker()` method."]
2212    #[doc = ""]
2213    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/createTreeWalker)"]
2214    #[doc = ""]
2215    #[doc = "*This API requires the following crate features to be activated: `Document`, `TreeWalker`*"]
2216    pub fn create_tree_walker_with_what_to_show(
2217        this: &Document,
2218        root: &Node,
2219        what_to_show: u32,
2220    ) -> Result<TreeWalker, JsValue>;
2221    #[cfg(all(feature = "NodeFilter", feature = "TreeWalker",))]
2222    #[wasm_bindgen(catch, method, js_class = "Document", js_name = "createTreeWalker")]
2223    #[doc = "The `createTreeWalker()` method."]
2224    #[doc = ""]
2225    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/createTreeWalker)"]
2226    #[doc = ""]
2227    #[doc = "*This API requires the following crate features to be activated: `Document`, `NodeFilter`, `TreeWalker`*"]
2228    pub fn create_tree_walker_with_what_to_show_and_filter(
2229        this: &Document,
2230        root: &Node,
2231        what_to_show: u32,
2232        filter: Option<&NodeFilter>,
2233    ) -> Result<TreeWalker, JsValue>;
2234    #[wasm_bindgen(method, js_class = "Document", js_name = "enableStyleSheetsForSet")]
2235    #[doc = "The `enableStyleSheetsForSet()` method."]
2236    #[doc = ""]
2237    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/enableStyleSheetsForSet)"]
2238    #[doc = ""]
2239    #[doc = "*This API requires the following crate features to be activated: `Document`*"]
2240    pub fn enable_style_sheets_for_set(this: &Document, name: Option<&str>);
2241    #[wasm_bindgen(method, js_class = "Document", js_name = "exitFullscreen")]
2242    #[doc = "The `exitFullscreen()` method."]
2243    #[doc = ""]
2244    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/exitFullscreen)"]
2245    #[doc = ""]
2246    #[doc = "*This API requires the following crate features to be activated: `Document`*"]
2247    pub fn exit_fullscreen(this: &Document);
2248    #[cfg(web_sys_unstable_apis)]
2249    #[wasm_bindgen(method, js_class = "Document", js_name = "exitPictureInPicture")]
2250    #[doc = "The `exitPictureInPicture()` method."]
2251    #[doc = ""]
2252    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/exitPictureInPicture)"]
2253    #[doc = ""]
2254    #[doc = "*This API requires the following crate features to be activated: `Document`*"]
2255    #[doc = ""]
2256    #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
2257    #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
2258    pub fn exit_picture_in_picture(this: &Document) -> ::js_sys::Promise<::js_sys::Undefined>;
2259    #[wasm_bindgen(method, js_class = "Document", js_name = "exitPointerLock")]
2260    #[doc = "The `exitPointerLock()` method."]
2261    #[doc = ""]
2262    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/exitPointerLock)"]
2263    #[doc = ""]
2264    #[doc = "*This API requires the following crate features to be activated: `Document`*"]
2265    pub fn exit_pointer_lock(this: &Document);
2266    #[wasm_bindgen(method, js_class = "Document", js_name = "getAnimations")]
2267    #[doc = "The `getAnimations()` method."]
2268    #[doc = ""]
2269    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/getAnimations)"]
2270    #[doc = ""]
2271    #[doc = "*This API requires the following crate features to be activated: `Document`*"]
2272    pub fn get_animations(this: &Document) -> ::js_sys::Array;
2273    #[cfg(feature = "Element")]
2274    #[wasm_bindgen(method, js_class = "Document", js_name = "getElementById")]
2275    #[doc = "The `getElementById()` method."]
2276    #[doc = ""]
2277    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/getElementById)"]
2278    #[doc = ""]
2279    #[doc = "*This API requires the following crate features to be activated: `Document`, `Element`*"]
2280    pub fn get_element_by_id(this: &Document, element_id: &str) -> Option<Element>;
2281    #[cfg(feature = "HtmlCollection")]
2282    #[wasm_bindgen(method, js_class = "Document", js_name = "getElementsByClassName")]
2283    #[doc = "The `getElementsByClassName()` method."]
2284    #[doc = ""]
2285    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/getElementsByClassName)"]
2286    #[doc = ""]
2287    #[doc = "*This API requires the following crate features to be activated: `Document`, `HtmlCollection`*"]
2288    pub fn get_elements_by_class_name(this: &Document, class_names: &str) -> HtmlCollection;
2289    #[cfg(feature = "NodeList")]
2290    #[wasm_bindgen(method, js_class = "Document", js_name = "getElementsByName")]
2291    #[doc = "The `getElementsByName()` method."]
2292    #[doc = ""]
2293    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/getElementsByName)"]
2294    #[doc = ""]
2295    #[doc = "*This API requires the following crate features to be activated: `Document`, `NodeList`*"]
2296    pub fn get_elements_by_name(this: &Document, element_name: &str) -> NodeList;
2297    #[cfg(feature = "HtmlCollection")]
2298    #[wasm_bindgen(method, js_class = "Document", js_name = "getElementsByTagName")]
2299    #[doc = "The `getElementsByTagName()` method."]
2300    #[doc = ""]
2301    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/getElementsByTagName)"]
2302    #[doc = ""]
2303    #[doc = "*This API requires the following crate features to be activated: `Document`, `HtmlCollection`*"]
2304    pub fn get_elements_by_tag_name(this: &Document, local_name: &str) -> HtmlCollection;
2305    #[cfg(feature = "HtmlCollection")]
2306    #[wasm_bindgen(
2307        catch,
2308        method,
2309        js_class = "Document",
2310        js_name = "getElementsByTagNameNS"
2311    )]
2312    #[doc = "The `getElementsByTagNameNS()` method."]
2313    #[doc = ""]
2314    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/getElementsByTagNameNS)"]
2315    #[doc = ""]
2316    #[doc = "*This API requires the following crate features to be activated: `Document`, `HtmlCollection`*"]
2317    pub fn get_elements_by_tag_name_ns(
2318        this: &Document,
2319        namespace: Option<&str>,
2320        local_name: &str,
2321    ) -> Result<HtmlCollection, JsValue>;
2322    #[cfg(feature = "Selection")]
2323    #[wasm_bindgen(catch, method, js_class = "Document", js_name = "getSelection")]
2324    #[doc = "The `getSelection()` method."]
2325    #[doc = ""]
2326    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/getSelection)"]
2327    #[doc = ""]
2328    #[doc = "*This API requires the following crate features to be activated: `Document`, `Selection`*"]
2329    pub fn get_selection(this: &Document) -> Result<Option<Selection>, JsValue>;
2330    #[wasm_bindgen(catch, method, js_class = "Document", js_name = "hasFocus")]
2331    #[doc = "The `hasFocus()` method."]
2332    #[doc = ""]
2333    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/hasFocus)"]
2334    #[doc = ""]
2335    #[doc = "*This API requires the following crate features to be activated: `Document`*"]
2336    pub fn has_focus(this: &Document) -> Result<bool, JsValue>;
2337    #[wasm_bindgen(catch, method, js_class = "Document", js_name = "importNode")]
2338    #[doc = "The `importNode()` method."]
2339    #[doc = ""]
2340    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/importNode)"]
2341    #[doc = ""]
2342    #[doc = "*This API requires the following crate features to be activated: `Document`*"]
2343    pub fn import_node(this: &Document, node: &Node) -> Result<Node, JsValue>;
2344    #[wasm_bindgen(catch, method, js_class = "Document", js_name = "importNode")]
2345    #[doc = "The `importNode()` method."]
2346    #[doc = ""]
2347    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/importNode)"]
2348    #[doc = ""]
2349    #[doc = "*This API requires the following crate features to be activated: `Document`*"]
2350    pub fn import_node_with_deep(this: &Document, node: &Node, deep: bool)
2351        -> Result<Node, JsValue>;
2352    #[cfg(feature = "Element")]
2353    #[wasm_bindgen(catch, method, js_class = "Document", js_name = "querySelector")]
2354    #[doc = "The `querySelector()` method."]
2355    #[doc = ""]
2356    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/querySelector)"]
2357    #[doc = ""]
2358    #[doc = "*This API requires the following crate features to be activated: `Document`, `Element`*"]
2359    pub fn query_selector(this: &Document, selectors: &str) -> Result<Option<Element>, JsValue>;
2360    #[cfg(feature = "NodeList")]
2361    #[wasm_bindgen(catch, method, js_class = "Document", js_name = "querySelectorAll")]
2362    #[doc = "The `querySelectorAll()` method."]
2363    #[doc = ""]
2364    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/querySelectorAll)"]
2365    #[doc = ""]
2366    #[doc = "*This API requires the following crate features to be activated: `Document`, `NodeList`*"]
2367    pub fn query_selector_all(this: &Document, selectors: &str) -> Result<NodeList, JsValue>;
2368    #[wasm_bindgen(method, js_class = "Document", js_name = "releaseCapture")]
2369    #[doc = "The `releaseCapture()` method."]
2370    #[doc = ""]
2371    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/releaseCapture)"]
2372    #[doc = ""]
2373    #[doc = "*This API requires the following crate features to be activated: `Document`*"]
2374    pub fn release_capture(this: &Document);
2375    #[cfg(web_sys_unstable_apis)]
2376    #[cfg(feature = "ViewTransition")]
2377    #[wasm_bindgen(catch, method, js_class = "Document", js_name = "startViewTransition")]
2378    #[doc = "The `startViewTransition()` method."]
2379    #[doc = ""]
2380    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/startViewTransition)"]
2381    #[doc = ""]
2382    #[doc = "*This API requires the following crate features to be activated: `Document`, `ViewTransition`*"]
2383    #[doc = ""]
2384    #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
2385    #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
2386    pub fn start_view_transition(this: &Document) -> Result<ViewTransition, JsValue>;
2387    #[cfg(web_sys_unstable_apis)]
2388    #[cfg(feature = "ViewTransition")]
2389    #[wasm_bindgen(catch, method, js_class = "Document", js_name = "startViewTransition")]
2390    #[doc = "The `startViewTransition()` method."]
2391    #[doc = ""]
2392    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/startViewTransition)"]
2393    #[doc = ""]
2394    #[doc = "*This API requires the following crate features to be activated: `Document`, `ViewTransition`*"]
2395    #[doc = ""]
2396    #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
2397    #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
2398    pub fn start_view_transition_with_update_callback(
2399        this: &Document,
2400        update_callback: Option<&::js_sys::Function<fn() -> ::js_sys::Promise>>,
2401    ) -> Result<ViewTransition, JsValue>;
2402    #[cfg(feature = "Element")]
2403    #[wasm_bindgen(method, js_class = "Document", js_name = "elementFromPoint")]
2404    #[doc = "The `elementFromPoint()` method."]
2405    #[doc = ""]
2406    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/elementFromPoint)"]
2407    #[doc = ""]
2408    #[doc = "*This API requires the following crate features to be activated: `Document`, `Element`*"]
2409    pub fn element_from_point(this: &Document, x: f32, y: f32) -> Option<Element>;
2410    #[wasm_bindgen(method, js_class = "Document", js_name = "elementsFromPoint")]
2411    #[doc = "The `elementsFromPoint()` method."]
2412    #[doc = ""]
2413    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/elementsFromPoint)"]
2414    #[doc = ""]
2415    #[doc = "*This API requires the following crate features to be activated: `Document`*"]
2416    pub fn elements_from_point(this: &Document, x: f32, y: f32) -> ::js_sys::Array;
2417    #[cfg(all(feature = "DomPoint", feature = "DomPointInit", feature = "Text",))]
2418    #[wasm_bindgen(catch, method, js_class = "Document", js_name = "convertPointFromNode")]
2419    #[doc = "The `convertPointFromNode()` method."]
2420    #[doc = ""]
2421    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/convertPointFromNode)"]
2422    #[doc = ""]
2423    #[doc = "*This API requires the following crate features to be activated: `Document`, `DomPoint`, `DomPointInit`, `Text`*"]
2424    pub fn convert_point_from_node_with_text(
2425        this: &Document,
2426        point: &DomPointInit,
2427        from: &Text,
2428    ) -> Result<DomPoint, JsValue>;
2429    #[cfg(all(feature = "DomPoint", feature = "DomPointInit", feature = "Element",))]
2430    #[wasm_bindgen(catch, method, js_class = "Document", js_name = "convertPointFromNode")]
2431    #[doc = "The `convertPointFromNode()` method."]
2432    #[doc = ""]
2433    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/convertPointFromNode)"]
2434    #[doc = ""]
2435    #[doc = "*This API requires the following crate features to be activated: `Document`, `DomPoint`, `DomPointInit`, `Element`*"]
2436    pub fn convert_point_from_node_with_element(
2437        this: &Document,
2438        point: &DomPointInit,
2439        from: &Element,
2440    ) -> Result<DomPoint, JsValue>;
2441    #[cfg(all(feature = "DomPoint", feature = "DomPointInit",))]
2442    #[wasm_bindgen(catch, method, js_class = "Document", js_name = "convertPointFromNode")]
2443    #[doc = "The `convertPointFromNode()` method."]
2444    #[doc = ""]
2445    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/convertPointFromNode)"]
2446    #[doc = ""]
2447    #[doc = "*This API requires the following crate features to be activated: `Document`, `DomPoint`, `DomPointInit`*"]
2448    pub fn convert_point_from_node_with_document(
2449        this: &Document,
2450        point: &DomPointInit,
2451        from: &Document,
2452    ) -> Result<DomPoint, JsValue>;
2453    #[cfg(all(
2454        feature = "ConvertCoordinateOptions",
2455        feature = "DomPoint",
2456        feature = "DomPointInit",
2457        feature = "Text",
2458    ))]
2459    #[wasm_bindgen(catch, method, js_class = "Document", js_name = "convertPointFromNode")]
2460    #[doc = "The `convertPointFromNode()` method."]
2461    #[doc = ""]
2462    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/convertPointFromNode)"]
2463    #[doc = ""]
2464    #[doc = "*This API requires the following crate features to be activated: `ConvertCoordinateOptions`, `Document`, `DomPoint`, `DomPointInit`, `Text`*"]
2465    pub fn convert_point_from_node_with_text_and_options(
2466        this: &Document,
2467        point: &DomPointInit,
2468        from: &Text,
2469        options: &ConvertCoordinateOptions,
2470    ) -> Result<DomPoint, JsValue>;
2471    #[cfg(all(
2472        feature = "ConvertCoordinateOptions",
2473        feature = "DomPoint",
2474        feature = "DomPointInit",
2475        feature = "Element",
2476    ))]
2477    #[wasm_bindgen(catch, method, js_class = "Document", js_name = "convertPointFromNode")]
2478    #[doc = "The `convertPointFromNode()` method."]
2479    #[doc = ""]
2480    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/convertPointFromNode)"]
2481    #[doc = ""]
2482    #[doc = "*This API requires the following crate features to be activated: `ConvertCoordinateOptions`, `Document`, `DomPoint`, `DomPointInit`, `Element`*"]
2483    pub fn convert_point_from_node_with_element_and_options(
2484        this: &Document,
2485        point: &DomPointInit,
2486        from: &Element,
2487        options: &ConvertCoordinateOptions,
2488    ) -> Result<DomPoint, JsValue>;
2489    #[cfg(all(
2490        feature = "ConvertCoordinateOptions",
2491        feature = "DomPoint",
2492        feature = "DomPointInit",
2493    ))]
2494    #[wasm_bindgen(catch, method, js_class = "Document", js_name = "convertPointFromNode")]
2495    #[doc = "The `convertPointFromNode()` method."]
2496    #[doc = ""]
2497    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/convertPointFromNode)"]
2498    #[doc = ""]
2499    #[doc = "*This API requires the following crate features to be activated: `ConvertCoordinateOptions`, `Document`, `DomPoint`, `DomPointInit`*"]
2500    pub fn convert_point_from_node_with_document_and_options(
2501        this: &Document,
2502        point: &DomPointInit,
2503        from: &Document,
2504        options: &ConvertCoordinateOptions,
2505    ) -> Result<DomPoint, JsValue>;
2506    #[cfg(all(feature = "DomQuad", feature = "Text",))]
2507    #[wasm_bindgen(catch, method, js_class = "Document", js_name = "convertQuadFromNode")]
2508    #[doc = "The `convertQuadFromNode()` method."]
2509    #[doc = ""]
2510    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/convertQuadFromNode)"]
2511    #[doc = ""]
2512    #[doc = "*This API requires the following crate features to be activated: `Document`, `DomQuad`, `Text`*"]
2513    pub fn convert_quad_from_node_with_text(
2514        this: &Document,
2515        quad: &DomQuad,
2516        from: &Text,
2517    ) -> Result<DomQuad, JsValue>;
2518    #[cfg(all(feature = "DomQuad", feature = "Element",))]
2519    #[wasm_bindgen(catch, method, js_class = "Document", js_name = "convertQuadFromNode")]
2520    #[doc = "The `convertQuadFromNode()` method."]
2521    #[doc = ""]
2522    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/convertQuadFromNode)"]
2523    #[doc = ""]
2524    #[doc = "*This API requires the following crate features to be activated: `Document`, `DomQuad`, `Element`*"]
2525    pub fn convert_quad_from_node_with_element(
2526        this: &Document,
2527        quad: &DomQuad,
2528        from: &Element,
2529    ) -> Result<DomQuad, JsValue>;
2530    #[cfg(feature = "DomQuad")]
2531    #[wasm_bindgen(catch, method, js_class = "Document", js_name = "convertQuadFromNode")]
2532    #[doc = "The `convertQuadFromNode()` method."]
2533    #[doc = ""]
2534    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/convertQuadFromNode)"]
2535    #[doc = ""]
2536    #[doc = "*This API requires the following crate features to be activated: `Document`, `DomQuad`*"]
2537    pub fn convert_quad_from_node_with_document(
2538        this: &Document,
2539        quad: &DomQuad,
2540        from: &Document,
2541    ) -> Result<DomQuad, JsValue>;
2542    #[cfg(all(
2543        feature = "ConvertCoordinateOptions",
2544        feature = "DomQuad",
2545        feature = "Text",
2546    ))]
2547    #[wasm_bindgen(catch, method, js_class = "Document", js_name = "convertQuadFromNode")]
2548    #[doc = "The `convertQuadFromNode()` method."]
2549    #[doc = ""]
2550    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/convertQuadFromNode)"]
2551    #[doc = ""]
2552    #[doc = "*This API requires the following crate features to be activated: `ConvertCoordinateOptions`, `Document`, `DomQuad`, `Text`*"]
2553    pub fn convert_quad_from_node_with_text_and_options(
2554        this: &Document,
2555        quad: &DomQuad,
2556        from: &Text,
2557        options: &ConvertCoordinateOptions,
2558    ) -> Result<DomQuad, JsValue>;
2559    #[cfg(all(
2560        feature = "ConvertCoordinateOptions",
2561        feature = "DomQuad",
2562        feature = "Element",
2563    ))]
2564    #[wasm_bindgen(catch, method, js_class = "Document", js_name = "convertQuadFromNode")]
2565    #[doc = "The `convertQuadFromNode()` method."]
2566    #[doc = ""]
2567    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/convertQuadFromNode)"]
2568    #[doc = ""]
2569    #[doc = "*This API requires the following crate features to be activated: `ConvertCoordinateOptions`, `Document`, `DomQuad`, `Element`*"]
2570    pub fn convert_quad_from_node_with_element_and_options(
2571        this: &Document,
2572        quad: &DomQuad,
2573        from: &Element,
2574        options: &ConvertCoordinateOptions,
2575    ) -> Result<DomQuad, JsValue>;
2576    #[cfg(all(feature = "ConvertCoordinateOptions", feature = "DomQuad",))]
2577    #[wasm_bindgen(catch, method, js_class = "Document", js_name = "convertQuadFromNode")]
2578    #[doc = "The `convertQuadFromNode()` method."]
2579    #[doc = ""]
2580    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/convertQuadFromNode)"]
2581    #[doc = ""]
2582    #[doc = "*This API requires the following crate features to be activated: `ConvertCoordinateOptions`, `Document`, `DomQuad`*"]
2583    pub fn convert_quad_from_node_with_document_and_options(
2584        this: &Document,
2585        quad: &DomQuad,
2586        from: &Document,
2587        options: &ConvertCoordinateOptions,
2588    ) -> Result<DomQuad, JsValue>;
2589    #[cfg(all(feature = "DomQuad", feature = "DomRectReadOnly", feature = "Text",))]
2590    #[wasm_bindgen(catch, method, js_class = "Document", js_name = "convertRectFromNode")]
2591    #[doc = "The `convertRectFromNode()` method."]
2592    #[doc = ""]
2593    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/convertRectFromNode)"]
2594    #[doc = ""]
2595    #[doc = "*This API requires the following crate features to be activated: `Document`, `DomQuad`, `DomRectReadOnly`, `Text`*"]
2596    pub fn convert_rect_from_node_with_text(
2597        this: &Document,
2598        rect: &DomRectReadOnly,
2599        from: &Text,
2600    ) -> Result<DomQuad, JsValue>;
2601    #[cfg(all(feature = "DomQuad", feature = "DomRectReadOnly", feature = "Element",))]
2602    #[wasm_bindgen(catch, method, js_class = "Document", js_name = "convertRectFromNode")]
2603    #[doc = "The `convertRectFromNode()` method."]
2604    #[doc = ""]
2605    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/convertRectFromNode)"]
2606    #[doc = ""]
2607    #[doc = "*This API requires the following crate features to be activated: `Document`, `DomQuad`, `DomRectReadOnly`, `Element`*"]
2608    pub fn convert_rect_from_node_with_element(
2609        this: &Document,
2610        rect: &DomRectReadOnly,
2611        from: &Element,
2612    ) -> Result<DomQuad, JsValue>;
2613    #[cfg(all(feature = "DomQuad", feature = "DomRectReadOnly",))]
2614    #[wasm_bindgen(catch, method, js_class = "Document", js_name = "convertRectFromNode")]
2615    #[doc = "The `convertRectFromNode()` method."]
2616    #[doc = ""]
2617    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/convertRectFromNode)"]
2618    #[doc = ""]
2619    #[doc = "*This API requires the following crate features to be activated: `Document`, `DomQuad`, `DomRectReadOnly`*"]
2620    pub fn convert_rect_from_node_with_document(
2621        this: &Document,
2622        rect: &DomRectReadOnly,
2623        from: &Document,
2624    ) -> Result<DomQuad, JsValue>;
2625    #[cfg(all(
2626        feature = "ConvertCoordinateOptions",
2627        feature = "DomQuad",
2628        feature = "DomRectReadOnly",
2629        feature = "Text",
2630    ))]
2631    #[wasm_bindgen(catch, method, js_class = "Document", js_name = "convertRectFromNode")]
2632    #[doc = "The `convertRectFromNode()` method."]
2633    #[doc = ""]
2634    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/convertRectFromNode)"]
2635    #[doc = ""]
2636    #[doc = "*This API requires the following crate features to be activated: `ConvertCoordinateOptions`, `Document`, `DomQuad`, `DomRectReadOnly`, `Text`*"]
2637    pub fn convert_rect_from_node_with_text_and_options(
2638        this: &Document,
2639        rect: &DomRectReadOnly,
2640        from: &Text,
2641        options: &ConvertCoordinateOptions,
2642    ) -> Result<DomQuad, JsValue>;
2643    #[cfg(all(
2644        feature = "ConvertCoordinateOptions",
2645        feature = "DomQuad",
2646        feature = "DomRectReadOnly",
2647        feature = "Element",
2648    ))]
2649    #[wasm_bindgen(catch, method, js_class = "Document", js_name = "convertRectFromNode")]
2650    #[doc = "The `convertRectFromNode()` method."]
2651    #[doc = ""]
2652    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/convertRectFromNode)"]
2653    #[doc = ""]
2654    #[doc = "*This API requires the following crate features to be activated: `ConvertCoordinateOptions`, `Document`, `DomQuad`, `DomRectReadOnly`, `Element`*"]
2655    pub fn convert_rect_from_node_with_element_and_options(
2656        this: &Document,
2657        rect: &DomRectReadOnly,
2658        from: &Element,
2659        options: &ConvertCoordinateOptions,
2660    ) -> Result<DomQuad, JsValue>;
2661    #[cfg(all(
2662        feature = "ConvertCoordinateOptions",
2663        feature = "DomQuad",
2664        feature = "DomRectReadOnly",
2665    ))]
2666    #[wasm_bindgen(catch, method, js_class = "Document", js_name = "convertRectFromNode")]
2667    #[doc = "The `convertRectFromNode()` method."]
2668    #[doc = ""]
2669    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/convertRectFromNode)"]
2670    #[doc = ""]
2671    #[doc = "*This API requires the following crate features to be activated: `ConvertCoordinateOptions`, `Document`, `DomQuad`, `DomRectReadOnly`*"]
2672    pub fn convert_rect_from_node_with_document_and_options(
2673        this: &Document,
2674        rect: &DomRectReadOnly,
2675        from: &Document,
2676        options: &ConvertCoordinateOptions,
2677    ) -> Result<DomQuad, JsValue>;
2678    #[wasm_bindgen(catch, method, js_class = "Document", js_name = "getBoxQuads")]
2679    #[doc = "The `getBoxQuads()` method."]
2680    #[doc = ""]
2681    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/getBoxQuads)"]
2682    #[doc = ""]
2683    #[doc = "*This API requires the following crate features to be activated: `Document`*"]
2684    pub fn get_box_quads(this: &Document) -> Result<::js_sys::Array, JsValue>;
2685    #[cfg(feature = "BoxQuadOptions")]
2686    #[wasm_bindgen(catch, method, js_class = "Document", js_name = "getBoxQuads")]
2687    #[doc = "The `getBoxQuads()` method."]
2688    #[doc = ""]
2689    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/getBoxQuads)"]
2690    #[doc = ""]
2691    #[doc = "*This API requires the following crate features to be activated: `BoxQuadOptions`, `Document`*"]
2692    pub fn get_box_quads_with_options(
2693        this: &Document,
2694        options: &BoxQuadOptions,
2695    ) -> Result<::js_sys::Array, JsValue>;
2696    #[wasm_bindgen(catch, method, variadic, js_class = "Document", js_name = "append")]
2697    #[doc = "The `append()` method."]
2698    #[doc = ""]
2699    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/append)"]
2700    #[doc = ""]
2701    #[doc = "*This API requires the following crate features to be activated: `Document`*"]
2702    pub fn append_with_node(this: &Document, nodes: &::js_sys::Array) -> Result<(), JsValue>;
2703    #[wasm_bindgen(catch, method, js_class = "Document", js_name = "append")]
2704    #[doc = "The `append()` method."]
2705    #[doc = ""]
2706    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/append)"]
2707    #[doc = ""]
2708    #[doc = "*This API requires the following crate features to be activated: `Document`*"]
2709    pub fn append_with_node_0(this: &Document) -> Result<(), JsValue>;
2710    #[wasm_bindgen(catch, method, js_class = "Document", js_name = "append")]
2711    #[doc = "The `append()` method."]
2712    #[doc = ""]
2713    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/append)"]
2714    #[doc = ""]
2715    #[doc = "*This API requires the following crate features to be activated: `Document`*"]
2716    pub fn append_with_node_1(this: &Document, nodes_1: &Node) -> Result<(), JsValue>;
2717    #[wasm_bindgen(catch, method, js_class = "Document", js_name = "append")]
2718    #[doc = "The `append()` method."]
2719    #[doc = ""]
2720    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/append)"]
2721    #[doc = ""]
2722    #[doc = "*This API requires the following crate features to be activated: `Document`*"]
2723    pub fn append_with_node_2(
2724        this: &Document,
2725        nodes_1: &Node,
2726        nodes_2: &Node,
2727    ) -> Result<(), JsValue>;
2728    #[wasm_bindgen(catch, method, js_class = "Document", js_name = "append")]
2729    #[doc = "The `append()` method."]
2730    #[doc = ""]
2731    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/append)"]
2732    #[doc = ""]
2733    #[doc = "*This API requires the following crate features to be activated: `Document`*"]
2734    pub fn append_with_node_3(
2735        this: &Document,
2736        nodes_1: &Node,
2737        nodes_2: &Node,
2738        nodes_3: &Node,
2739    ) -> Result<(), JsValue>;
2740    #[wasm_bindgen(catch, method, js_class = "Document", js_name = "append")]
2741    #[doc = "The `append()` method."]
2742    #[doc = ""]
2743    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/append)"]
2744    #[doc = ""]
2745    #[doc = "*This API requires the following crate features to be activated: `Document`*"]
2746    pub fn append_with_node_4(
2747        this: &Document,
2748        nodes_1: &Node,
2749        nodes_2: &Node,
2750        nodes_3: &Node,
2751        nodes_4: &Node,
2752    ) -> Result<(), JsValue>;
2753    #[wasm_bindgen(catch, method, js_class = "Document", js_name = "append")]
2754    #[doc = "The `append()` method."]
2755    #[doc = ""]
2756    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/append)"]
2757    #[doc = ""]
2758    #[doc = "*This API requires the following crate features to be activated: `Document`*"]
2759    pub fn append_with_node_5(
2760        this: &Document,
2761        nodes_1: &Node,
2762        nodes_2: &Node,
2763        nodes_3: &Node,
2764        nodes_4: &Node,
2765        nodes_5: &Node,
2766    ) -> Result<(), JsValue>;
2767    #[wasm_bindgen(catch, method, js_class = "Document", js_name = "append")]
2768    #[doc = "The `append()` method."]
2769    #[doc = ""]
2770    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/append)"]
2771    #[doc = ""]
2772    #[doc = "*This API requires the following crate features to be activated: `Document`*"]
2773    pub fn append_with_node_6(
2774        this: &Document,
2775        nodes_1: &Node,
2776        nodes_2: &Node,
2777        nodes_3: &Node,
2778        nodes_4: &Node,
2779        nodes_5: &Node,
2780        nodes_6: &Node,
2781    ) -> Result<(), JsValue>;
2782    #[wasm_bindgen(catch, method, js_class = "Document", js_name = "append")]
2783    #[doc = "The `append()` method."]
2784    #[doc = ""]
2785    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/append)"]
2786    #[doc = ""]
2787    #[doc = "*This API requires the following crate features to be activated: `Document`*"]
2788    pub fn append_with_node_7(
2789        this: &Document,
2790        nodes_1: &Node,
2791        nodes_2: &Node,
2792        nodes_3: &Node,
2793        nodes_4: &Node,
2794        nodes_5: &Node,
2795        nodes_6: &Node,
2796        nodes_7: &Node,
2797    ) -> Result<(), JsValue>;
2798    #[wasm_bindgen(catch, method, variadic, js_class = "Document", js_name = "append")]
2799    #[doc = "The `append()` method."]
2800    #[doc = ""]
2801    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/append)"]
2802    #[doc = ""]
2803    #[doc = "*This API requires the following crate features to be activated: `Document`*"]
2804    pub fn append_with_str(this: &Document, nodes: &::js_sys::Array) -> Result<(), JsValue>;
2805    #[wasm_bindgen(catch, method, js_class = "Document", js_name = "append")]
2806    #[doc = "The `append()` method."]
2807    #[doc = ""]
2808    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/append)"]
2809    #[doc = ""]
2810    #[doc = "*This API requires the following crate features to be activated: `Document`*"]
2811    pub fn append_with_str_0(this: &Document) -> Result<(), JsValue>;
2812    #[wasm_bindgen(catch, method, js_class = "Document", js_name = "append")]
2813    #[doc = "The `append()` method."]
2814    #[doc = ""]
2815    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/append)"]
2816    #[doc = ""]
2817    #[doc = "*This API requires the following crate features to be activated: `Document`*"]
2818    pub fn append_with_str_1(this: &Document, nodes_1: &str) -> Result<(), JsValue>;
2819    #[wasm_bindgen(catch, method, js_class = "Document", js_name = "append")]
2820    #[doc = "The `append()` method."]
2821    #[doc = ""]
2822    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/append)"]
2823    #[doc = ""]
2824    #[doc = "*This API requires the following crate features to be activated: `Document`*"]
2825    pub fn append_with_str_2(this: &Document, nodes_1: &str, nodes_2: &str) -> Result<(), JsValue>;
2826    #[wasm_bindgen(catch, method, js_class = "Document", js_name = "append")]
2827    #[doc = "The `append()` method."]
2828    #[doc = ""]
2829    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/append)"]
2830    #[doc = ""]
2831    #[doc = "*This API requires the following crate features to be activated: `Document`*"]
2832    pub fn append_with_str_3(
2833        this: &Document,
2834        nodes_1: &str,
2835        nodes_2: &str,
2836        nodes_3: &str,
2837    ) -> Result<(), JsValue>;
2838    #[wasm_bindgen(catch, method, js_class = "Document", js_name = "append")]
2839    #[doc = "The `append()` method."]
2840    #[doc = ""]
2841    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/append)"]
2842    #[doc = ""]
2843    #[doc = "*This API requires the following crate features to be activated: `Document`*"]
2844    pub fn append_with_str_4(
2845        this: &Document,
2846        nodes_1: &str,
2847        nodes_2: &str,
2848        nodes_3: &str,
2849        nodes_4: &str,
2850    ) -> Result<(), JsValue>;
2851    #[wasm_bindgen(catch, method, js_class = "Document", js_name = "append")]
2852    #[doc = "The `append()` method."]
2853    #[doc = ""]
2854    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/append)"]
2855    #[doc = ""]
2856    #[doc = "*This API requires the following crate features to be activated: `Document`*"]
2857    pub fn append_with_str_5(
2858        this: &Document,
2859        nodes_1: &str,
2860        nodes_2: &str,
2861        nodes_3: &str,
2862        nodes_4: &str,
2863        nodes_5: &str,
2864    ) -> Result<(), JsValue>;
2865    #[wasm_bindgen(catch, method, js_class = "Document", js_name = "append")]
2866    #[doc = "The `append()` method."]
2867    #[doc = ""]
2868    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/append)"]
2869    #[doc = ""]
2870    #[doc = "*This API requires the following crate features to be activated: `Document`*"]
2871    pub fn append_with_str_6(
2872        this: &Document,
2873        nodes_1: &str,
2874        nodes_2: &str,
2875        nodes_3: &str,
2876        nodes_4: &str,
2877        nodes_5: &str,
2878        nodes_6: &str,
2879    ) -> Result<(), JsValue>;
2880    #[wasm_bindgen(catch, method, js_class = "Document", js_name = "append")]
2881    #[doc = "The `append()` method."]
2882    #[doc = ""]
2883    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/append)"]
2884    #[doc = ""]
2885    #[doc = "*This API requires the following crate features to be activated: `Document`*"]
2886    pub fn append_with_str_7(
2887        this: &Document,
2888        nodes_1: &str,
2889        nodes_2: &str,
2890        nodes_3: &str,
2891        nodes_4: &str,
2892        nodes_5: &str,
2893        nodes_6: &str,
2894        nodes_7: &str,
2895    ) -> Result<(), JsValue>;
2896    #[wasm_bindgen(catch, method, variadic, js_class = "Document", js_name = "prepend")]
2897    #[doc = "The `prepend()` method."]
2898    #[doc = ""]
2899    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/prepend)"]
2900    #[doc = ""]
2901    #[doc = "*This API requires the following crate features to be activated: `Document`*"]
2902    pub fn prepend_with_node(this: &Document, nodes: &::js_sys::Array) -> Result<(), JsValue>;
2903    #[wasm_bindgen(catch, method, js_class = "Document", js_name = "prepend")]
2904    #[doc = "The `prepend()` method."]
2905    #[doc = ""]
2906    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/prepend)"]
2907    #[doc = ""]
2908    #[doc = "*This API requires the following crate features to be activated: `Document`*"]
2909    pub fn prepend_with_node_0(this: &Document) -> Result<(), JsValue>;
2910    #[wasm_bindgen(catch, method, js_class = "Document", js_name = "prepend")]
2911    #[doc = "The `prepend()` method."]
2912    #[doc = ""]
2913    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/prepend)"]
2914    #[doc = ""]
2915    #[doc = "*This API requires the following crate features to be activated: `Document`*"]
2916    pub fn prepend_with_node_1(this: &Document, nodes_1: &Node) -> Result<(), JsValue>;
2917    #[wasm_bindgen(catch, method, js_class = "Document", js_name = "prepend")]
2918    #[doc = "The `prepend()` method."]
2919    #[doc = ""]
2920    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/prepend)"]
2921    #[doc = ""]
2922    #[doc = "*This API requires the following crate features to be activated: `Document`*"]
2923    pub fn prepend_with_node_2(
2924        this: &Document,
2925        nodes_1: &Node,
2926        nodes_2: &Node,
2927    ) -> Result<(), JsValue>;
2928    #[wasm_bindgen(catch, method, js_class = "Document", js_name = "prepend")]
2929    #[doc = "The `prepend()` method."]
2930    #[doc = ""]
2931    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/prepend)"]
2932    #[doc = ""]
2933    #[doc = "*This API requires the following crate features to be activated: `Document`*"]
2934    pub fn prepend_with_node_3(
2935        this: &Document,
2936        nodes_1: &Node,
2937        nodes_2: &Node,
2938        nodes_3: &Node,
2939    ) -> Result<(), JsValue>;
2940    #[wasm_bindgen(catch, method, js_class = "Document", js_name = "prepend")]
2941    #[doc = "The `prepend()` method."]
2942    #[doc = ""]
2943    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/prepend)"]
2944    #[doc = ""]
2945    #[doc = "*This API requires the following crate features to be activated: `Document`*"]
2946    pub fn prepend_with_node_4(
2947        this: &Document,
2948        nodes_1: &Node,
2949        nodes_2: &Node,
2950        nodes_3: &Node,
2951        nodes_4: &Node,
2952    ) -> Result<(), JsValue>;
2953    #[wasm_bindgen(catch, method, js_class = "Document", js_name = "prepend")]
2954    #[doc = "The `prepend()` method."]
2955    #[doc = ""]
2956    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/prepend)"]
2957    #[doc = ""]
2958    #[doc = "*This API requires the following crate features to be activated: `Document`*"]
2959    pub fn prepend_with_node_5(
2960        this: &Document,
2961        nodes_1: &Node,
2962        nodes_2: &Node,
2963        nodes_3: &Node,
2964        nodes_4: &Node,
2965        nodes_5: &Node,
2966    ) -> Result<(), JsValue>;
2967    #[wasm_bindgen(catch, method, js_class = "Document", js_name = "prepend")]
2968    #[doc = "The `prepend()` method."]
2969    #[doc = ""]
2970    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/prepend)"]
2971    #[doc = ""]
2972    #[doc = "*This API requires the following crate features to be activated: `Document`*"]
2973    pub fn prepend_with_node_6(
2974        this: &Document,
2975        nodes_1: &Node,
2976        nodes_2: &Node,
2977        nodes_3: &Node,
2978        nodes_4: &Node,
2979        nodes_5: &Node,
2980        nodes_6: &Node,
2981    ) -> Result<(), JsValue>;
2982    #[wasm_bindgen(catch, method, js_class = "Document", js_name = "prepend")]
2983    #[doc = "The `prepend()` method."]
2984    #[doc = ""]
2985    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/prepend)"]
2986    #[doc = ""]
2987    #[doc = "*This API requires the following crate features to be activated: `Document`*"]
2988    pub fn prepend_with_node_7(
2989        this: &Document,
2990        nodes_1: &Node,
2991        nodes_2: &Node,
2992        nodes_3: &Node,
2993        nodes_4: &Node,
2994        nodes_5: &Node,
2995        nodes_6: &Node,
2996        nodes_7: &Node,
2997    ) -> Result<(), JsValue>;
2998    #[wasm_bindgen(catch, method, variadic, js_class = "Document", js_name = "prepend")]
2999    #[doc = "The `prepend()` method."]
3000    #[doc = ""]
3001    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/prepend)"]
3002    #[doc = ""]
3003    #[doc = "*This API requires the following crate features to be activated: `Document`*"]
3004    pub fn prepend_with_str(this: &Document, nodes: &::js_sys::Array) -> Result<(), JsValue>;
3005    #[wasm_bindgen(catch, method, js_class = "Document", js_name = "prepend")]
3006    #[doc = "The `prepend()` method."]
3007    #[doc = ""]
3008    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/prepend)"]
3009    #[doc = ""]
3010    #[doc = "*This API requires the following crate features to be activated: `Document`*"]
3011    pub fn prepend_with_str_0(this: &Document) -> Result<(), JsValue>;
3012    #[wasm_bindgen(catch, method, js_class = "Document", js_name = "prepend")]
3013    #[doc = "The `prepend()` method."]
3014    #[doc = ""]
3015    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/prepend)"]
3016    #[doc = ""]
3017    #[doc = "*This API requires the following crate features to be activated: `Document`*"]
3018    pub fn prepend_with_str_1(this: &Document, nodes_1: &str) -> Result<(), JsValue>;
3019    #[wasm_bindgen(catch, method, js_class = "Document", js_name = "prepend")]
3020    #[doc = "The `prepend()` method."]
3021    #[doc = ""]
3022    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/prepend)"]
3023    #[doc = ""]
3024    #[doc = "*This API requires the following crate features to be activated: `Document`*"]
3025    pub fn prepend_with_str_2(this: &Document, nodes_1: &str, nodes_2: &str)
3026        -> Result<(), JsValue>;
3027    #[wasm_bindgen(catch, method, js_class = "Document", js_name = "prepend")]
3028    #[doc = "The `prepend()` method."]
3029    #[doc = ""]
3030    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/prepend)"]
3031    #[doc = ""]
3032    #[doc = "*This API requires the following crate features to be activated: `Document`*"]
3033    pub fn prepend_with_str_3(
3034        this: &Document,
3035        nodes_1: &str,
3036        nodes_2: &str,
3037        nodes_3: &str,
3038    ) -> Result<(), JsValue>;
3039    #[wasm_bindgen(catch, method, js_class = "Document", js_name = "prepend")]
3040    #[doc = "The `prepend()` method."]
3041    #[doc = ""]
3042    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/prepend)"]
3043    #[doc = ""]
3044    #[doc = "*This API requires the following crate features to be activated: `Document`*"]
3045    pub fn prepend_with_str_4(
3046        this: &Document,
3047        nodes_1: &str,
3048        nodes_2: &str,
3049        nodes_3: &str,
3050        nodes_4: &str,
3051    ) -> Result<(), JsValue>;
3052    #[wasm_bindgen(catch, method, js_class = "Document", js_name = "prepend")]
3053    #[doc = "The `prepend()` method."]
3054    #[doc = ""]
3055    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/prepend)"]
3056    #[doc = ""]
3057    #[doc = "*This API requires the following crate features to be activated: `Document`*"]
3058    pub fn prepend_with_str_5(
3059        this: &Document,
3060        nodes_1: &str,
3061        nodes_2: &str,
3062        nodes_3: &str,
3063        nodes_4: &str,
3064        nodes_5: &str,
3065    ) -> Result<(), JsValue>;
3066    #[wasm_bindgen(catch, method, js_class = "Document", js_name = "prepend")]
3067    #[doc = "The `prepend()` method."]
3068    #[doc = ""]
3069    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/prepend)"]
3070    #[doc = ""]
3071    #[doc = "*This API requires the following crate features to be activated: `Document`*"]
3072    pub fn prepend_with_str_6(
3073        this: &Document,
3074        nodes_1: &str,
3075        nodes_2: &str,
3076        nodes_3: &str,
3077        nodes_4: &str,
3078        nodes_5: &str,
3079        nodes_6: &str,
3080    ) -> Result<(), JsValue>;
3081    #[wasm_bindgen(catch, method, js_class = "Document", js_name = "prepend")]
3082    #[doc = "The `prepend()` method."]
3083    #[doc = ""]
3084    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/prepend)"]
3085    #[doc = ""]
3086    #[doc = "*This API requires the following crate features to be activated: `Document`*"]
3087    pub fn prepend_with_str_7(
3088        this: &Document,
3089        nodes_1: &str,
3090        nodes_2: &str,
3091        nodes_3: &str,
3092        nodes_4: &str,
3093        nodes_5: &str,
3094        nodes_6: &str,
3095        nodes_7: &str,
3096    ) -> Result<(), JsValue>;
3097    #[wasm_bindgen(method, variadic, js_class = "Document", js_name = "replaceChildren")]
3098    #[doc = "The `replaceChildren()` method."]
3099    #[doc = ""]
3100    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/replaceChildren)"]
3101    #[doc = ""]
3102    #[doc = "*This API requires the following crate features to be activated: `Document`*"]
3103    pub fn replace_children_with_node(this: &Document, nodes: &::js_sys::Array);
3104    #[wasm_bindgen(method, js_class = "Document", js_name = "replaceChildren")]
3105    #[doc = "The `replaceChildren()` method."]
3106    #[doc = ""]
3107    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/replaceChildren)"]
3108    #[doc = ""]
3109    #[doc = "*This API requires the following crate features to be activated: `Document`*"]
3110    pub fn replace_children_with_node_0(this: &Document);
3111    #[wasm_bindgen(method, js_class = "Document", js_name = "replaceChildren")]
3112    #[doc = "The `replaceChildren()` method."]
3113    #[doc = ""]
3114    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/replaceChildren)"]
3115    #[doc = ""]
3116    #[doc = "*This API requires the following crate features to be activated: `Document`*"]
3117    pub fn replace_children_with_node_1(this: &Document, nodes_1: &Node);
3118    #[wasm_bindgen(method, js_class = "Document", js_name = "replaceChildren")]
3119    #[doc = "The `replaceChildren()` method."]
3120    #[doc = ""]
3121    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/replaceChildren)"]
3122    #[doc = ""]
3123    #[doc = "*This API requires the following crate features to be activated: `Document`*"]
3124    pub fn replace_children_with_node_2(this: &Document, nodes_1: &Node, nodes_2: &Node);
3125    #[wasm_bindgen(method, js_class = "Document", js_name = "replaceChildren")]
3126    #[doc = "The `replaceChildren()` method."]
3127    #[doc = ""]
3128    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/replaceChildren)"]
3129    #[doc = ""]
3130    #[doc = "*This API requires the following crate features to be activated: `Document`*"]
3131    pub fn replace_children_with_node_3(
3132        this: &Document,
3133        nodes_1: &Node,
3134        nodes_2: &Node,
3135        nodes_3: &Node,
3136    );
3137    #[wasm_bindgen(method, js_class = "Document", js_name = "replaceChildren")]
3138    #[doc = "The `replaceChildren()` method."]
3139    #[doc = ""]
3140    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/replaceChildren)"]
3141    #[doc = ""]
3142    #[doc = "*This API requires the following crate features to be activated: `Document`*"]
3143    pub fn replace_children_with_node_4(
3144        this: &Document,
3145        nodes_1: &Node,
3146        nodes_2: &Node,
3147        nodes_3: &Node,
3148        nodes_4: &Node,
3149    );
3150    #[wasm_bindgen(method, js_class = "Document", js_name = "replaceChildren")]
3151    #[doc = "The `replaceChildren()` method."]
3152    #[doc = ""]
3153    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/replaceChildren)"]
3154    #[doc = ""]
3155    #[doc = "*This API requires the following crate features to be activated: `Document`*"]
3156    pub fn replace_children_with_node_5(
3157        this: &Document,
3158        nodes_1: &Node,
3159        nodes_2: &Node,
3160        nodes_3: &Node,
3161        nodes_4: &Node,
3162        nodes_5: &Node,
3163    );
3164    #[wasm_bindgen(method, js_class = "Document", js_name = "replaceChildren")]
3165    #[doc = "The `replaceChildren()` method."]
3166    #[doc = ""]
3167    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/replaceChildren)"]
3168    #[doc = ""]
3169    #[doc = "*This API requires the following crate features to be activated: `Document`*"]
3170    pub fn replace_children_with_node_6(
3171        this: &Document,
3172        nodes_1: &Node,
3173        nodes_2: &Node,
3174        nodes_3: &Node,
3175        nodes_4: &Node,
3176        nodes_5: &Node,
3177        nodes_6: &Node,
3178    );
3179    #[wasm_bindgen(method, js_class = "Document", js_name = "replaceChildren")]
3180    #[doc = "The `replaceChildren()` method."]
3181    #[doc = ""]
3182    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/replaceChildren)"]
3183    #[doc = ""]
3184    #[doc = "*This API requires the following crate features to be activated: `Document`*"]
3185    pub fn replace_children_with_node_7(
3186        this: &Document,
3187        nodes_1: &Node,
3188        nodes_2: &Node,
3189        nodes_3: &Node,
3190        nodes_4: &Node,
3191        nodes_5: &Node,
3192        nodes_6: &Node,
3193        nodes_7: &Node,
3194    );
3195    #[wasm_bindgen(method, variadic, js_class = "Document", js_name = "replaceChildren")]
3196    #[doc = "The `replaceChildren()` method."]
3197    #[doc = ""]
3198    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/replaceChildren)"]
3199    #[doc = ""]
3200    #[doc = "*This API requires the following crate features to be activated: `Document`*"]
3201    pub fn replace_children_with_str(this: &Document, nodes: &::js_sys::Array);
3202    #[wasm_bindgen(method, js_class = "Document", js_name = "replaceChildren")]
3203    #[doc = "The `replaceChildren()` method."]
3204    #[doc = ""]
3205    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/replaceChildren)"]
3206    #[doc = ""]
3207    #[doc = "*This API requires the following crate features to be activated: `Document`*"]
3208    pub fn replace_children_with_str_0(this: &Document);
3209    #[wasm_bindgen(method, js_class = "Document", js_name = "replaceChildren")]
3210    #[doc = "The `replaceChildren()` method."]
3211    #[doc = ""]
3212    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/replaceChildren)"]
3213    #[doc = ""]
3214    #[doc = "*This API requires the following crate features to be activated: `Document`*"]
3215    pub fn replace_children_with_str_1(this: &Document, nodes_1: &str);
3216    #[wasm_bindgen(method, js_class = "Document", js_name = "replaceChildren")]
3217    #[doc = "The `replaceChildren()` method."]
3218    #[doc = ""]
3219    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/replaceChildren)"]
3220    #[doc = ""]
3221    #[doc = "*This API requires the following crate features to be activated: `Document`*"]
3222    pub fn replace_children_with_str_2(this: &Document, nodes_1: &str, nodes_2: &str);
3223    #[wasm_bindgen(method, js_class = "Document", js_name = "replaceChildren")]
3224    #[doc = "The `replaceChildren()` method."]
3225    #[doc = ""]
3226    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/replaceChildren)"]
3227    #[doc = ""]
3228    #[doc = "*This API requires the following crate features to be activated: `Document`*"]
3229    pub fn replace_children_with_str_3(
3230        this: &Document,
3231        nodes_1: &str,
3232        nodes_2: &str,
3233        nodes_3: &str,
3234    );
3235    #[wasm_bindgen(method, js_class = "Document", js_name = "replaceChildren")]
3236    #[doc = "The `replaceChildren()` method."]
3237    #[doc = ""]
3238    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/replaceChildren)"]
3239    #[doc = ""]
3240    #[doc = "*This API requires the following crate features to be activated: `Document`*"]
3241    pub fn replace_children_with_str_4(
3242        this: &Document,
3243        nodes_1: &str,
3244        nodes_2: &str,
3245        nodes_3: &str,
3246        nodes_4: &str,
3247    );
3248    #[wasm_bindgen(method, js_class = "Document", js_name = "replaceChildren")]
3249    #[doc = "The `replaceChildren()` method."]
3250    #[doc = ""]
3251    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/replaceChildren)"]
3252    #[doc = ""]
3253    #[doc = "*This API requires the following crate features to be activated: `Document`*"]
3254    pub fn replace_children_with_str_5(
3255        this: &Document,
3256        nodes_1: &str,
3257        nodes_2: &str,
3258        nodes_3: &str,
3259        nodes_4: &str,
3260        nodes_5: &str,
3261    );
3262    #[wasm_bindgen(method, js_class = "Document", js_name = "replaceChildren")]
3263    #[doc = "The `replaceChildren()` method."]
3264    #[doc = ""]
3265    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/replaceChildren)"]
3266    #[doc = ""]
3267    #[doc = "*This API requires the following crate features to be activated: `Document`*"]
3268    pub fn replace_children_with_str_6(
3269        this: &Document,
3270        nodes_1: &str,
3271        nodes_2: &str,
3272        nodes_3: &str,
3273        nodes_4: &str,
3274        nodes_5: &str,
3275        nodes_6: &str,
3276    );
3277    #[wasm_bindgen(method, js_class = "Document", js_name = "replaceChildren")]
3278    #[doc = "The `replaceChildren()` method."]
3279    #[doc = ""]
3280    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/replaceChildren)"]
3281    #[doc = ""]
3282    #[doc = "*This API requires the following crate features to be activated: `Document`*"]
3283    pub fn replace_children_with_str_7(
3284        this: &Document,
3285        nodes_1: &str,
3286        nodes_2: &str,
3287        nodes_3: &str,
3288        nodes_4: &str,
3289        nodes_5: &str,
3290        nodes_6: &str,
3291        nodes_7: &str,
3292    );
3293    #[cfg(feature = "XPathExpression")]
3294    #[wasm_bindgen(catch, method, js_class = "Document", js_name = "createExpression")]
3295    #[doc = "The `createExpression()` method."]
3296    #[doc = ""]
3297    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/createExpression)"]
3298    #[doc = ""]
3299    #[doc = "*This API requires the following crate features to be activated: `Document`, `XPathExpression`*"]
3300    pub fn create_expression(this: &Document, expression: &str)
3301        -> Result<XPathExpression, JsValue>;
3302    #[cfg(feature = "XPathExpression")]
3303    #[wasm_bindgen(catch, method, js_class = "Document", js_name = "createExpression")]
3304    #[doc = "The `createExpression()` method."]
3305    #[doc = ""]
3306    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/createExpression)"]
3307    #[doc = ""]
3308    #[doc = "*This API requires the following crate features to be activated: `Document`, `XPathExpression`*"]
3309    pub fn create_expression_with_opt_callback(
3310        this: &Document,
3311        expression: &str,
3312        resolver: Option<&::js_sys::Function>,
3313    ) -> Result<XPathExpression, JsValue>;
3314    #[cfg(all(feature = "XPathExpression", feature = "XPathNsResolver",))]
3315    #[wasm_bindgen(catch, method, js_class = "Document", js_name = "createExpression")]
3316    #[doc = "The `createExpression()` method."]
3317    #[doc = ""]
3318    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/createExpression)"]
3319    #[doc = ""]
3320    #[doc = "*This API requires the following crate features to be activated: `Document`, `XPathExpression`, `XPathNsResolver`*"]
3321    pub fn create_expression_with_opt_x_path_ns_resolver(
3322        this: &Document,
3323        expression: &str,
3324        resolver: Option<&XPathNsResolver>,
3325    ) -> Result<XPathExpression, JsValue>;
3326    #[wasm_bindgen(method, js_class = "Document", js_name = "createNSResolver")]
3327    #[doc = "The `createNSResolver()` method."]
3328    #[doc = ""]
3329    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/createNSResolver)"]
3330    #[doc = ""]
3331    #[doc = "*This API requires the following crate features to be activated: `Document`*"]
3332    pub fn create_ns_resolver(this: &Document, node_resolver: &Node) -> Node;
3333    #[cfg(feature = "XPathResult")]
3334    #[wasm_bindgen(catch, method, js_class = "Document")]
3335    #[doc = "The `evaluate()` method."]
3336    #[doc = ""]
3337    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/evaluate)"]
3338    #[doc = ""]
3339    #[doc = "*This API requires the following crate features to be activated: `Document`, `XPathResult`*"]
3340    pub fn evaluate(
3341        this: &Document,
3342        expression: &str,
3343        context_node: &Node,
3344    ) -> Result<XPathResult, JsValue>;
3345    #[cfg(feature = "XPathResult")]
3346    #[wasm_bindgen(catch, method, js_class = "Document", js_name = "evaluate")]
3347    #[doc = "The `evaluate()` method."]
3348    #[doc = ""]
3349    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/evaluate)"]
3350    #[doc = ""]
3351    #[doc = "*This API requires the following crate features to be activated: `Document`, `XPathResult`*"]
3352    pub fn evaluate_with_opt_callback(
3353        this: &Document,
3354        expression: &str,
3355        context_node: &Node,
3356        resolver: Option<&::js_sys::Function>,
3357    ) -> Result<XPathResult, JsValue>;
3358    #[cfg(all(feature = "XPathNsResolver", feature = "XPathResult",))]
3359    #[wasm_bindgen(catch, method, js_class = "Document", js_name = "evaluate")]
3360    #[doc = "The `evaluate()` method."]
3361    #[doc = ""]
3362    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/evaluate)"]
3363    #[doc = ""]
3364    #[doc = "*This API requires the following crate features to be activated: `Document`, `XPathNsResolver`, `XPathResult`*"]
3365    pub fn evaluate_with_opt_x_path_ns_resolver(
3366        this: &Document,
3367        expression: &str,
3368        context_node: &Node,
3369        resolver: Option<&XPathNsResolver>,
3370    ) -> Result<XPathResult, JsValue>;
3371    #[cfg(feature = "XPathResult")]
3372    #[wasm_bindgen(catch, method, js_class = "Document", js_name = "evaluate")]
3373    #[doc = "The `evaluate()` method."]
3374    #[doc = ""]
3375    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/evaluate)"]
3376    #[doc = ""]
3377    #[doc = "*This API requires the following crate features to be activated: `Document`, `XPathResult`*"]
3378    pub fn evaluate_with_opt_callback_and_type(
3379        this: &Document,
3380        expression: &str,
3381        context_node: &Node,
3382        resolver: Option<&::js_sys::Function>,
3383        type_: u16,
3384    ) -> Result<XPathResult, JsValue>;
3385    #[cfg(all(feature = "XPathNsResolver", feature = "XPathResult",))]
3386    #[wasm_bindgen(catch, method, js_class = "Document", js_name = "evaluate")]
3387    #[doc = "The `evaluate()` method."]
3388    #[doc = ""]
3389    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/evaluate)"]
3390    #[doc = ""]
3391    #[doc = "*This API requires the following crate features to be activated: `Document`, `XPathNsResolver`, `XPathResult`*"]
3392    pub fn evaluate_with_opt_x_path_ns_resolver_and_type(
3393        this: &Document,
3394        expression: &str,
3395        context_node: &Node,
3396        resolver: Option<&XPathNsResolver>,
3397        type_: u16,
3398    ) -> Result<XPathResult, JsValue>;
3399    #[cfg(feature = "XPathResult")]
3400    #[wasm_bindgen(catch, method, js_class = "Document", js_name = "evaluate")]
3401    #[doc = "The `evaluate()` method."]
3402    #[doc = ""]
3403    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/evaluate)"]
3404    #[doc = ""]
3405    #[doc = "*This API requires the following crate features to be activated: `Document`, `XPathResult`*"]
3406    pub fn evaluate_with_opt_callback_and_type_and_result(
3407        this: &Document,
3408        expression: &str,
3409        context_node: &Node,
3410        resolver: Option<&::js_sys::Function>,
3411        type_: u16,
3412        result: Option<&::js_sys::Object>,
3413    ) -> Result<XPathResult, JsValue>;
3414    #[cfg(all(feature = "XPathNsResolver", feature = "XPathResult",))]
3415    #[wasm_bindgen(catch, method, js_class = "Document", js_name = "evaluate")]
3416    #[doc = "The `evaluate()` method."]
3417    #[doc = ""]
3418    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/evaluate)"]
3419    #[doc = ""]
3420    #[doc = "*This API requires the following crate features to be activated: `Document`, `XPathNsResolver`, `XPathResult`*"]
3421    pub fn evaluate_with_opt_x_path_ns_resolver_and_type_and_result(
3422        this: &Document,
3423        expression: &str,
3424        context_node: &Node,
3425        resolver: Option<&XPathNsResolver>,
3426        type_: u16,
3427        result: Option<&::js_sys::Object>,
3428    ) -> Result<XPathResult, JsValue>;
3429}