Skip to main content

web_sys/features/
gen_HtmlBaseElement.rs

1#![allow(unused_imports)]
2#![allow(clippy::all)]
3use super::*;
4use wasm_bindgen::prelude::*;
5#[wasm_bindgen]
6extern "C" {
7    #[wasm_bindgen(
8        extends = "HtmlElement",
9        extends = "Element",
10        extends = "Node",
11        extends = "EventTarget",
12        extends = "::js_sys::Object",
13        js_name = "HTMLBaseElement",
14        typescript_type = "HTMLBaseElement"
15    )]
16    #[derive(Debug, Clone, PartialEq, Eq)]
17    #[doc = "The `HtmlBaseElement` class."]
18    #[doc = ""]
19    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLBaseElement)"]
20    #[doc = ""]
21    #[doc = "*This API requires the following crate features to be activated: `HtmlBaseElement`*"]
22    pub type HtmlBaseElement;
23    #[wasm_bindgen(method, getter, js_class = "HTMLBaseElement", js_name = "href")]
24    #[doc = "Getter for the `href` field of this object."]
25    #[doc = ""]
26    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLBaseElement/href)"]
27    #[doc = ""]
28    #[doc = "*This API requires the following crate features to be activated: `HtmlBaseElement`*"]
29    pub fn href(this: &HtmlBaseElement) -> ::alloc::string::String;
30    #[wasm_bindgen(method, setter, js_class = "HTMLBaseElement", js_name = "href")]
31    #[doc = "Setter for the `href` field of this object."]
32    #[doc = ""]
33    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLBaseElement/href)"]
34    #[doc = ""]
35    #[doc = "*This API requires the following crate features to be activated: `HtmlBaseElement`*"]
36    pub fn set_href(this: &HtmlBaseElement, value: &str);
37    #[wasm_bindgen(method, getter, js_class = "HTMLBaseElement", js_name = "target")]
38    #[doc = "Getter for the `target` field of this object."]
39    #[doc = ""]
40    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLBaseElement/target)"]
41    #[doc = ""]
42    #[doc = "*This API requires the following crate features to be activated: `HtmlBaseElement`*"]
43    pub fn target(this: &HtmlBaseElement) -> ::alloc::string::String;
44    #[wasm_bindgen(method, setter, js_class = "HTMLBaseElement", js_name = "target")]
45    #[doc = "Setter for the `target` field of this object."]
46    #[doc = ""]
47    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLBaseElement/target)"]
48    #[doc = ""]
49    #[doc = "*This API requires the following crate features to be activated: `HtmlBaseElement`*"]
50    pub fn set_target(this: &HtmlBaseElement, value: &str);
51}