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