maxcountryman_web_sys/features/
gen_DomImplementation.rs

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