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