///|
/// SVGElement is the base interface for all SVG elements
/// https://developer.mozilla.org/en-US/docs/Web/API/SVGElement
#external
pub type SVGElement
///|
pub fn SVGElement::as_any(self : SVGElement) -> @core.Any = "%identity"
///|
pub fn SVGElement::as_event_target(self : SVGElement) -> @event.EventTarget = "%identity"
///|
pub fn SVGElement::as_node(self : SVGElement) -> Node = "%identity"
///|
pub fn SVGElement::as_element(self : SVGElement) -> Element = "%identity"
///|
///|
///|
///|
///|
/// Sets an attribute on the SVG element
pub fn SVGElement::setAttribute(
self : Self,
name : String,
value : String,
) -> Unit {
self.as_any()._call("setAttribute", [@core.any(name), @core.any(value)])
|> ignore
}
///|
/// Gets an attribute from the SVG element
pub fn SVGElement::getAttribute(self : Self, name : String) -> String? {
let v : @core.Any = self
.as_any()
._call("getAttribute", [@core.any(name)])
.cast()
v |> @core.identity_option()
}
///|
/// SVGSVGElement represents an