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