web_sys/features/
gen_DomImplementation.rs1#![allow(unused_imports)]
2#![allow(clippy::all)]
3use super::*;
4use wasm_bindgen::prelude::*;
5#[wasm_bindgen]
6extern "C" {
7 # [wasm_bindgen (extends = :: js_sys :: Object , js_name = DOMImplementation , typescript_type = "DOMImplementation")]
8 #[derive(Debug, Clone, PartialEq, Eq)]
9 #[doc = "The `DomImplementation` class."]
10 #[doc = ""]
11 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DOMImplementation)"]
12 #[doc = ""]
13 #[doc = "*This API requires the following crate features to be activated: `DomImplementation`*"]
14 pub type DomImplementation;
15 #[cfg(feature = "Document")]
16 # [wasm_bindgen (catch , method , structural , js_class = "DOMImplementation" , js_name = createDocument)]
17 #[doc = "The `createDocument()` method."]
18 #[doc = ""]
19 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DOMImplementation/createDocument)"]
20 #[doc = ""]
21 #[doc = "*This API requires the following crate features to be activated: `Document`, `DomImplementation`*"]
22 pub fn create_document(
23 this: &DomImplementation,
24 namespace: Option<&str>,
25 qualified_name: &str,
26 ) -> Result<Document, JsValue>;
27 #[cfg(all(feature = "Document", feature = "DocumentType",))]
28 # [wasm_bindgen (catch , method , structural , js_class = "DOMImplementation" , js_name = createDocument)]
29 #[doc = "The `createDocument()` method."]
30 #[doc = ""]
31 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DOMImplementation/createDocument)"]
32 #[doc = ""]
33 #[doc = "*This API requires the following crate features to be activated: `Document`, `DocumentType`, `DomImplementation`*"]
34 pub fn create_document_with_doctype(
35 this: &DomImplementation,
36 namespace: Option<&str>,
37 qualified_name: &str,
38 doctype: Option<&DocumentType>,
39 ) -> Result<Document, JsValue>;
40 #[cfg(feature = "DocumentType")]
41 # [wasm_bindgen (catch , method , structural , js_class = "DOMImplementation" , js_name = createDocumentType)]
42 #[doc = "The `createDocumentType()` method."]
43 #[doc = ""]
44 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DOMImplementation/createDocumentType)"]
45 #[doc = ""]
46 #[doc = "*This API requires the following crate features to be activated: `DocumentType`, `DomImplementation`*"]
47 pub fn create_document_type(
48 this: &DomImplementation,
49 qualified_name: &str,
50 public_id: &str,
51 system_id: &str,
52 ) -> Result<DocumentType, JsValue>;
53 #[cfg(feature = "Document")]
54 # [wasm_bindgen (catch , method , structural , js_class = "DOMImplementation" , js_name = createHTMLDocument)]
55 #[doc = "The `createHTMLDocument()` method."]
56 #[doc = ""]
57 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DOMImplementation/createHTMLDocument)"]
58 #[doc = ""]
59 #[doc = "*This API requires the following crate features to be activated: `Document`, `DomImplementation`*"]
60 pub fn create_html_document(this: &DomImplementation) -> Result<Document, JsValue>;
61 #[cfg(feature = "Document")]
62 # [wasm_bindgen (catch , method , structural , js_class = "DOMImplementation" , js_name = createHTMLDocument)]
63 #[doc = "The `createHTMLDocument()` method."]
64 #[doc = ""]
65 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DOMImplementation/createHTMLDocument)"]
66 #[doc = ""]
67 #[doc = "*This API requires the following crate features to be activated: `Document`, `DomImplementation`*"]
68 pub fn create_html_document_with_title(
69 this: &DomImplementation,
70 title: &str,
71 ) -> Result<Document, JsValue>;
72 # [wasm_bindgen (method , structural , js_class = "DOMImplementation" , js_name = hasFeature)]
73 #[doc = "The `hasFeature()` method."]
74 #[doc = ""]
75 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DOMImplementation/hasFeature)"]
76 #[doc = ""]
77 #[doc = "*This API requires the following crate features to be activated: `DomImplementation`*"]
78 pub fn has_feature(this: &DomImplementation) -> bool;
79}