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 = HTMLCollection , typescript_type = "HTMLCollection")]
7     #[derive(Debug, Clone, PartialEq, Eq)]
8     #[doc = "The `HtmlCollection` class."]
9     #[doc = ""]
10     #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLCollection)"]
11     #[doc = ""]
12     #[doc = "*This API requires the following crate features to be activated: `HtmlCollection`*"]
13     pub type HtmlCollection;
14     # [wasm_bindgen (structural , method , getter , js_class = "HTMLCollection" , js_name = length)]
15     #[doc = "Getter for the `length` field of this object."]
16     #[doc = ""]
17     #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLCollection/length)"]
18     #[doc = ""]
19     #[doc = "*This API requires the following crate features to be activated: `HtmlCollection`*"]
length(this: &HtmlCollection) -> u3220     pub fn length(this: &HtmlCollection) -> u32;
21     #[cfg(feature = "Element")]
22     # [wasm_bindgen (method , structural , js_class = "HTMLCollection" , js_name = item)]
23     #[doc = "The `item()` method."]
24     #[doc = ""]
25     #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLCollection/item)"]
26     #[doc = ""]
27     #[doc = "*This API requires the following crate features to be activated: `Element`, `HtmlCollection`*"]
item(this: &HtmlCollection, index: u32) -> Option<Element>28     pub fn item(this: &HtmlCollection, index: u32) -> Option<Element>;
29     #[cfg(feature = "Element")]
30     # [wasm_bindgen (method , structural , js_class = "HTMLCollection" , js_name = namedItem)]
31     #[doc = "The `namedItem()` method."]
32     #[doc = ""]
33     #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLCollection/namedItem)"]
34     #[doc = ""]
35     #[doc = "*This API requires the following crate features to be activated: `Element`, `HtmlCollection`*"]
named_item(this: &HtmlCollection, name: &str) -> Option<Element>36     pub fn named_item(this: &HtmlCollection, name: &str) -> Option<Element>;
37     #[cfg(feature = "Element")]
38     #[wasm_bindgen(method, structural, js_class = "HTMLCollection", indexing_getter)]
39     #[doc = "Indexing getter."]
40     #[doc = ""]
41     #[doc = ""]
42     #[doc = ""]
43     #[doc = "*This API requires the following crate features to be activated: `Element`, `HtmlCollection`*"]
get_with_index(this: &HtmlCollection, index: u32) -> Option<Element>44     pub fn get_with_index(this: &HtmlCollection, index: u32) -> Option<Element>;
45     #[cfg(feature = "Element")]
46     #[wasm_bindgen(method, structural, js_class = "HTMLCollection", indexing_getter)]
47     #[doc = "Indexing getter."]
48     #[doc = ""]
49     #[doc = ""]
50     #[doc = ""]
51     #[doc = "*This API requires the following crate features to be activated: `Element`, `HtmlCollection`*"]
get_with_name(this: &HtmlCollection, name: &str) -> Option<Element>52     pub fn get_with_name(this: &HtmlCollection, name: &str) -> Option<Element>;
53 }
54