web_sys/features/
gen_XmlDocument.rs1#![allow(unused_imports)]
2#![allow(clippy::all)]
3use super::*;
4use wasm_bindgen::prelude::*;
5#[wasm_bindgen]
6extern "C" {
7 #[wasm_bindgen(
8 extends = "Document",
9 extends = "Node",
10 extends = "EventTarget",
11 extends = "::js_sys::Object",
12 js_name = "XMLDocument",
13 typescript_type = "XMLDocument"
14 )]
15 #[derive(Debug, Clone, PartialEq, Eq)]
16 #[doc = "The `XmlDocument` class."]
17 #[doc = ""]
18 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/XMLDocument)"]
19 #[doc = ""]
20 #[doc = "*This API requires the following crate features to be activated: `XmlDocument`*"]
21 pub type XmlDocument;
22 #[wasm_bindgen(method, getter, js_class = "XMLDocument", js_name = "async")]
23 #[doc = "Getter for the `async` field of this object."]
24 #[doc = ""]
25 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/XMLDocument/async)"]
26 #[doc = ""]
27 #[doc = "*This API requires the following crate features to be activated: `XmlDocument`*"]
28 pub fn r#async(this: &XmlDocument) -> bool;
29 #[wasm_bindgen(method, setter, js_class = "XMLDocument", js_name = "async")]
30 #[doc = "Setter for the `async` field of this object."]
31 #[doc = ""]
32 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/XMLDocument/async)"]
33 #[doc = ""]
34 #[doc = "*This API requires the following crate features to be activated: `XmlDocument`*"]
35 pub fn set_async(this: &XmlDocument, value: bool);
36 #[wasm_bindgen(catch, method, js_class = "XMLDocument")]
37 #[doc = "The `load()` method."]
38 #[doc = ""]
39 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/XMLDocument/load)"]
40 #[doc = ""]
41 #[doc = "*This API requires the following crate features to be activated: `XmlDocument`*"]
42 pub fn load(this: &XmlDocument, url: &str) -> Result<bool, JsValue>;
43}