SVGElement in SVG 1.1

Generic interface/class from which other elements inherit.

For more information see http://www.w3.org/TR/SVG11/types.html#InterfaceSVGElement.

Inherits from:

Inerhited by:

Instance Properties

name type description
attributes NamedNodeMap (read only) [from Node]
childNodes NodeList (read only) [from Node]
firstChild Node (read only) [from Node]
id String
lastChild Node (read only) [from Node]
localName String (read only) [from Node]
namespaceURI String (read only) [from Node]
nextSibling Node (read only) [from Node]
nodeName String (read only) [from Node]
nodeType Number (read only) [from Node]
nodeValue String [from Node]
ownerDocument Document (read only) [from Node]
ownerSVGElement SVGSVGElement (read only)
parentNode Node (read only) [from Node]
prefix String [from Node]
previousSibling Node (read only) [from Node]
tagName String (read only) [from Element]
viewportElement SVGElement (read only)
xmlbase String

Instance Methods

name returns description
addEventListener(type,listener,useCapture) (none) [from EventTarget]
appendChild(newChild) Node [from Node]
cloneNode(deep) Node Return a new copy of the node. [from Node]
dispatchEvent(evt) Boolean Dispatches an event to the invoking object. [from EventTarget]
getAttribute(name) String [from Element]
getAttributeNode(name) Attr [from Element]
getAttributeNodeNS(namespaceURI,localName) Attr [from Element]
getAttributeNS(namespaceURI,localName) String [from Element]
getElementsByTagName(name) NodeList [from Element]
getElementsByTagNameNS(namespaceURI,localName) NodeList [from Element]
hasAttribute(name) Boolean [from Element]
hasAttributeNS(namespaceURI,localName) Boolean [from Element]
hasAttributes() Boolean [from Node]
hasChildNodes() Boolean [from Node]
insertBefore(newChild,refChild) Node [from Node]
isSupported(feature,version) Boolean [from Node]
normalize() (none) [from Node]
removeAttribute(name) (none) [from Element]
removeAttributeNode(oldAttr) Attr [from Element]
removeAttributeNS(namespaceURI,localName) (none) [from Element]
removeChild(oldChild) Node [from Node]
removeEventListener(type,listener,useCapture) (none) [from EventTarget]
replaceChild(newChild,oldChild) Node [from Node]
setAttribute(name,value) (none) [from Element]
setAttributeNode(newAttr) Attr [from Element]
setAttributeNodeNS(newAttr) Attr [from Element]
setAttributeNS(namespaceURI,qualifiedName,value) (none) [from Element]

Description

All of the SVG DOM interfaces that correspond directly to elements in the SVG language (e.g., the SVGPathElement interface corresponds directly to the <path /> element in the language) are derivative from this base class.

Properties that are an SVGElement

name object description
correspondingElement SVGElementInstance (read only)
farthestViewportElement SVGLocatable (read only)
nearestViewportElement SVGLocatable (read only)
targetElement SVGAnimationElement (read only)
viewportElement SVGElement (read only)
viewTarget SVGViewSpec (read only)

Arguments that are an SVGElement

name in method of object description
element getTransformToElement(element) SVGLocatable
element checkIntersection(element,rect) SVGSVGElement The element on which to perfor
element checkEnclosure(element,rect) SVGSVGElement The element on which to perfor
referenceElement getIntersectionList(rect,referenceElement) SVGSVGElement If null, return a
referenceElement getEnclosureList(rect,referenceElement) SVGSVGElement If null, return a