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