files/en-us/web/api/svgelement/index.md
{{APIRef("SVG")}}
All of the SVG DOM interfaces that correspond directly to elements in the SVG language derive from the SVGElement interface.
{{InheritanceDiagram}}
Also inherits properties from the {{DOMxRef("Element")}} interface.
class is not present. This attribute is deprecated and may be removed in a future version of this specification. Authors are advised to use {{DOMxRef("Element.classList")}} instead.* is the key name for the pair. This works just like HTML's {{DOMxRef("HTMLElement.dataset")}} property and HTML's data-* global attribute.null if the given element is the outermost <svg> element.SVGElement which established the current viewport. Often the nearest ancestor {{SVGElement("svg")}} element. null if the given element is the outermost <svg> element.This interface also inherits methods from {{DOMxRef("Element")}}.
Listen to these events using addEventListener() or by assigning an event listener to the equivalent on... handler property.
abort
error
load
SVGElement when it is loaded in the browser.resize
scroll
unload
{{Specifications}}
{{Compat}}
data-* attribute