1 #![allow(unused_imports)]
2 use super::*;
3 use wasm_bindgen::prelude::*;
4 #[wasm_bindgen]
5 extern "C" {
6     # [wasm_bindgen (extends = :: js_sys :: Object , js_name = TreeWalker , typescript_type = "TreeWalker")]
7     #[derive(Debug, Clone, PartialEq, Eq)]
8     #[doc = "The `TreeWalker` class."]
9     #[doc = ""]
10     #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/TreeWalker)"]
11     #[doc = ""]
12     #[doc = "*This API requires the following crate features to be activated: `TreeWalker`*"]
13     pub type TreeWalker;
14     #[cfg(feature = "Node")]
15     # [wasm_bindgen (structural , method , getter , js_class = "TreeWalker" , js_name = root)]
16     #[doc = "Getter for the `root` field of this object."]
17     #[doc = ""]
18     #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/TreeWalker/root)"]
19     #[doc = ""]
20     #[doc = "*This API requires the following crate features to be activated: `Node`, `TreeWalker`*"]
root(this: &TreeWalker) -> Node21     pub fn root(this: &TreeWalker) -> Node;
22     # [wasm_bindgen (structural , method , getter , js_class = "TreeWalker" , js_name = whatToShow)]
23     #[doc = "Getter for the `whatToShow` field of this object."]
24     #[doc = ""]
25     #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/TreeWalker/whatToShow)"]
26     #[doc = ""]
27     #[doc = "*This API requires the following crate features to be activated: `TreeWalker`*"]
what_to_show(this: &TreeWalker) -> u3228     pub fn what_to_show(this: &TreeWalker) -> u32;
29     #[cfg(feature = "NodeFilter")]
30     # [wasm_bindgen (structural , method , getter , js_class = "TreeWalker" , js_name = filter)]
31     #[doc = "Getter for the `filter` field of this object."]
32     #[doc = ""]
33     #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/TreeWalker/filter)"]
34     #[doc = ""]
35     #[doc = "*This API requires the following crate features to be activated: `NodeFilter`, `TreeWalker`*"]
filter(this: &TreeWalker) -> Option<NodeFilter>36     pub fn filter(this: &TreeWalker) -> Option<NodeFilter>;
37     #[cfg(feature = "Node")]
38     # [wasm_bindgen (structural , method , getter , js_class = "TreeWalker" , js_name = currentNode)]
39     #[doc = "Getter for the `currentNode` field of this object."]
40     #[doc = ""]
41     #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/TreeWalker/currentNode)"]
42     #[doc = ""]
43     #[doc = "*This API requires the following crate features to be activated: `Node`, `TreeWalker`*"]
current_node(this: &TreeWalker) -> Node44     pub fn current_node(this: &TreeWalker) -> Node;
45     #[cfg(feature = "Node")]
46     # [wasm_bindgen (structural , method , setter , js_class = "TreeWalker" , js_name = currentNode)]
47     #[doc = "Setter for the `currentNode` field of this object."]
48     #[doc = ""]
49     #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/TreeWalker/currentNode)"]
50     #[doc = ""]
51     #[doc = "*This API requires the following crate features to be activated: `Node`, `TreeWalker`*"]
set_current_node(this: &TreeWalker, value: &Node)52     pub fn set_current_node(this: &TreeWalker, value: &Node);
53     #[cfg(feature = "Node")]
54     # [wasm_bindgen (catch , method , structural , js_class = "TreeWalker" , js_name = firstChild)]
55     #[doc = "The `firstChild()` method."]
56     #[doc = ""]
57     #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/TreeWalker/firstChild)"]
58     #[doc = ""]
59     #[doc = "*This API requires the following crate features to be activated: `Node`, `TreeWalker`*"]
first_child(this: &TreeWalker) -> Result<Option<Node>, JsValue>60     pub fn first_child(this: &TreeWalker) -> Result<Option<Node>, JsValue>;
61     #[cfg(feature = "Node")]
62     # [wasm_bindgen (catch , method , structural , js_class = "TreeWalker" , js_name = lastChild)]
63     #[doc = "The `lastChild()` method."]
64     #[doc = ""]
65     #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/TreeWalker/lastChild)"]
66     #[doc = ""]
67     #[doc = "*This API requires the following crate features to be activated: `Node`, `TreeWalker`*"]
last_child(this: &TreeWalker) -> Result<Option<Node>, JsValue>68     pub fn last_child(this: &TreeWalker) -> Result<Option<Node>, JsValue>;
69     #[cfg(feature = "Node")]
70     # [wasm_bindgen (catch , method , structural , js_class = "TreeWalker" , js_name = nextNode)]
71     #[doc = "The `nextNode()` method."]
72     #[doc = ""]
73     #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/TreeWalker/nextNode)"]
74     #[doc = ""]
75     #[doc = "*This API requires the following crate features to be activated: `Node`, `TreeWalker`*"]
next_node(this: &TreeWalker) -> Result<Option<Node>, JsValue>76     pub fn next_node(this: &TreeWalker) -> Result<Option<Node>, JsValue>;
77     #[cfg(feature = "Node")]
78     # [wasm_bindgen (catch , method , structural , js_class = "TreeWalker" , js_name = nextSibling)]
79     #[doc = "The `nextSibling()` method."]
80     #[doc = ""]
81     #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/TreeWalker/nextSibling)"]
82     #[doc = ""]
83     #[doc = "*This API requires the following crate features to be activated: `Node`, `TreeWalker`*"]
next_sibling(this: &TreeWalker) -> Result<Option<Node>, JsValue>84     pub fn next_sibling(this: &TreeWalker) -> Result<Option<Node>, JsValue>;
85     #[cfg(feature = "Node")]
86     # [wasm_bindgen (catch , method , structural , js_class = "TreeWalker" , js_name = parentNode)]
87     #[doc = "The `parentNode()` method."]
88     #[doc = ""]
89     #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/TreeWalker/parentNode)"]
90     #[doc = ""]
91     #[doc = "*This API requires the following crate features to be activated: `Node`, `TreeWalker`*"]
parent_node(this: &TreeWalker) -> Result<Option<Node>, JsValue>92     pub fn parent_node(this: &TreeWalker) -> Result<Option<Node>, JsValue>;
93     #[cfg(feature = "Node")]
94     # [wasm_bindgen (catch , method , structural , js_class = "TreeWalker" , js_name = previousNode)]
95     #[doc = "The `previousNode()` method."]
96     #[doc = ""]
97     #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/TreeWalker/previousNode)"]
98     #[doc = ""]
99     #[doc = "*This API requires the following crate features to be activated: `Node`, `TreeWalker`*"]
previous_node(this: &TreeWalker) -> Result<Option<Node>, JsValue>100     pub fn previous_node(this: &TreeWalker) -> Result<Option<Node>, JsValue>;
101     #[cfg(feature = "Node")]
102     # [wasm_bindgen (catch , method , structural , js_class = "TreeWalker" , js_name = previousSibling)]
103     #[doc = "The `previousSibling()` method."]
104     #[doc = ""]
105     #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/TreeWalker/previousSibling)"]
106     #[doc = ""]
107     #[doc = "*This API requires the following crate features to be activated: `Node`, `TreeWalker`*"]
previous_sibling(this: &TreeWalker) -> Result<Option<Node>, JsValue>108     pub fn previous_sibling(this: &TreeWalker) -> Result<Option<Node>, JsValue>;
109 }
110