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