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
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
|
#![allow(unused_imports)]
use super::*;
use wasm_bindgen::prelude::*;
#[wasm_bindgen]
extern "C" {
# [wasm_bindgen (extends = :: js_sys :: Object , js_name = NamedNodeMap , typescript_type = "NamedNodeMap")]
#[derive(Debug, Clone, PartialEq, Eq)]
#[doc = "The `NamedNodeMap` class."]
#[doc = ""]
#[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/NamedNodeMap)"]
#[doc = ""]
#[doc = "*This API requires the following crate features to be activated: `NamedNodeMap`*"]
pub type NamedNodeMap;
# [wasm_bindgen (structural , method , getter , js_class = "NamedNodeMap" , js_name = length)]
#[doc = "Getter for the `length` field of this object."]
#[doc = ""]
#[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/NamedNodeMap/length)"]
#[doc = ""]
#[doc = "*This API requires the following crate features to be activated: `NamedNodeMap`*"]
pub fn length(this: &NamedNodeMap) -> u32;
#[cfg(feature = "Attr")]
# [wasm_bindgen (method , structural , js_class = "NamedNodeMap" , js_name = getNamedItem)]
#[doc = "The `getNamedItem()` method."]
#[doc = ""]
#[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/NamedNodeMap/getNamedItem)"]
#[doc = ""]
#[doc = "*This API requires the following crate features to be activated: `Attr`, `NamedNodeMap`*"]
pub fn get_named_item(this: &NamedNodeMap, name: &str) -> Option<Attr>;
#[cfg(feature = "Attr")]
# [wasm_bindgen (method , structural , js_class = "NamedNodeMap" , js_name = getNamedItemNS)]
#[doc = "The `getNamedItemNS()` method."]
#[doc = ""]
#[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/NamedNodeMap/getNamedItemNS)"]
#[doc = ""]
#[doc = "*This API requires the following crate features to be activated: `Attr`, `NamedNodeMap`*"]
pub fn get_named_item_ns(
this: &NamedNodeMap,
namespace_uri: Option<&str>,
local_name: &str,
) -> Option<Attr>;
#[cfg(feature = "Attr")]
# [wasm_bindgen (method , structural , js_class = "NamedNodeMap" , js_name = item)]
#[doc = "The `item()` method."]
#[doc = ""]
#[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/NamedNodeMap/item)"]
#[doc = ""]
#[doc = "*This API requires the following crate features to be activated: `Attr`, `NamedNodeMap`*"]
pub fn item(this: &NamedNodeMap, index: u32) -> Option<Attr>;
#[cfg(feature = "Attr")]
# [wasm_bindgen (catch , method , structural , js_class = "NamedNodeMap" , js_name = removeNamedItem)]
#[doc = "The `removeNamedItem()` method."]
#[doc = ""]
#[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/NamedNodeMap/removeNamedItem)"]
#[doc = ""]
#[doc = "*This API requires the following crate features to be activated: `Attr`, `NamedNodeMap`*"]
pub fn remove_named_item(this: &NamedNodeMap, name: &str) -> Result<Attr, JsValue>;
#[cfg(feature = "Attr")]
# [wasm_bindgen (catch , method , structural , js_class = "NamedNodeMap" , js_name = removeNamedItemNS)]
#[doc = "The `removeNamedItemNS()` method."]
#[doc = ""]
#[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/NamedNodeMap/removeNamedItemNS)"]
#[doc = ""]
#[doc = "*This API requires the following crate features to be activated: `Attr`, `NamedNodeMap`*"]
pub fn remove_named_item_ns(
this: &NamedNodeMap,
namespace_uri: Option<&str>,
local_name: &str,
) -> Result<Attr, JsValue>;
#[cfg(feature = "Attr")]
# [wasm_bindgen (catch , method , structural , js_class = "NamedNodeMap" , js_name = setNamedItem)]
#[doc = "The `setNamedItem()` method."]
#[doc = ""]
#[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/NamedNodeMap/setNamedItem)"]
#[doc = ""]
#[doc = "*This API requires the following crate features to be activated: `Attr`, `NamedNodeMap`*"]
pub fn set_named_item(this: &NamedNodeMap, arg: &Attr) -> Result<Option<Attr>, JsValue>;
#[cfg(feature = "Attr")]
# [wasm_bindgen (catch , method , structural , js_class = "NamedNodeMap" , js_name = setNamedItemNS)]
#[doc = "The `setNamedItemNS()` method."]
#[doc = ""]
#[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/NamedNodeMap/setNamedItemNS)"]
#[doc = ""]
#[doc = "*This API requires the following crate features to be activated: `Attr`, `NamedNodeMap`*"]
pub fn set_named_item_ns(this: &NamedNodeMap, arg: &Attr) -> Result<Option<Attr>, JsValue>;
#[cfg(feature = "Attr")]
#[wasm_bindgen(method, structural, js_class = "NamedNodeMap", indexing_getter)]
#[doc = "Indexing getter."]
#[doc = ""]
#[doc = ""]
#[doc = ""]
#[doc = "*This API requires the following crate features to be activated: `Attr`, `NamedNodeMap`*"]
pub fn get_with_name(this: &NamedNodeMap, name: &str) -> Option<Attr>;
#[cfg(feature = "Attr")]
#[wasm_bindgen(method, structural, js_class = "NamedNodeMap", indexing_getter)]
#[doc = "Indexing getter."]
#[doc = ""]
#[doc = ""]
#[doc = ""]
#[doc = "*This API requires the following crate features to be activated: `Attr`, `NamedNodeMap`*"]
pub fn get_with_index(this: &NamedNodeMap, index: u32) -> Option<Attr>;
}
|