SVGPathElement Properties

The SVGPathElement type exposes the following members.

Properties
  NameDescription
Public propertyAnimatedPathSegList
Provides access to the current animated contents of the ‘d’ attribute in a form which matches one-for-one with SVG's syntax. If the given attribute or property is being animated, contains the current animated value of the attribute or property, and both the object itself and its contents are read only. If the given attribute or property is not currently being animated, contains the same value as pathSegList.
Public propertyAttributes
A NamedNodeMap containing the attributes of this node (if it is an Element) or null otherwise.
(Inherited from Element.)
Public propertyBaseURI
The absolute base URI of this node or null if the implementation wasn't able to obtain an absolute URI.
(Inherited from Node.)
Public propertyChildElementCount
Returns the current number of element nodes that are children of this element. 0 if this element has no child nodes that are of nodeType 1.
(Inherited from Element.)
Public propertyChildNodes
A NodeList that contains all children of this node. If there are no children, this is a NodeList containing no nodes..
(Inherited from Node.)
Public propertyChildren
Returns the child elements of current element.
(Inherited from Element.)
Public propertyClassList
Returns a live DOMTokenList which contains tokens received from parsing the "class" attribute.
(Inherited from Element.)
Public propertyClassName
Corresponds to attribute ‘class’ on the given element.
(Inherited from SVGElement.)
Public propertyFarthestViewportElement
The farthest ancestor ‘svg’ element. Null if the current element is the outermost svg element.
(Inherited from SVGGraphicsElement.)
Public propertyFirstChild
The first child of this node. If there is no such node, this returns null.
(Inherited from Node.)
Public propertyFirstElementChild
Returns the first child element node of this element. null if this element has no child elements.
(Inherited from Element.)
Public propertyId
The value of the ‘id’ attribute on the given element, or the empty string if ‘id’ is not present.
(Inherited from SVGElement.)
Public propertyInnerHTML
Returns a fragment of HTML or XML that represents the element's contents. Can be set, to replace the contents of the element with nodes parsed from the given string.
(Inherited from Element.)
Public propertyLastChild
The last child of this node. If there is no such node, this returns null.
(Inherited from Node.)
Public propertyLastElementChild
Returns the last child element node of this element. null if this element has no child elements.
(Inherited from Element.)
Public propertyLocalName
Returns the local part of the qualified name of this node. For nodes of any type other than ELEMENT_NODE and ATTRIBUTE_NODE and nodes created with a DOM Level 1 method, such as Document.createElement(), this is always null.
(Inherited from Element.)
Public propertyNamespaceURI
The namespace URI of this node, or null if it is unspecified.
(Inherited from Element.)
Public propertyNearestViewportElement
The element which established the current viewport. Often, the nearest ancestor ‘svg’ element. Null if the current element is the outermost svg element.
(Inherited from SVGGraphicsElement.)
Public propertyNextElementSibling
Returns the next sibling element node of this element. null if this element has no element sibling nodes that come after this one in the document tree.
(Inherited from Element.)
Public propertyNextSibling
The node immediately following this node. If there is no such node, this returns null.
(Inherited from Node.)
Public propertyNodeName
The name of this node, depending on its type.
(Inherited from Element.)
Public propertyNodeType
A code representing the type of the underlying object.
(Inherited from Element.)
Public propertyNodeValue
The value of this node, depending on its type.
(Inherited from Node.)
Public propertyOuterHTML
Returns a fragment of HTML or XML that represents the element and its contents. Can be set, to replace the element with nodes parsed from the given string.
(Inherited from Element.)
Public propertyOwnerDocument
The Document object associated with this node. This is also the Document object used to create new nodes. When this node is a Document or a DocumentType which is not used with any Document yet, this is null.
(Inherited from Node.)
Public propertyOwnerSVGElement
The nearest ancestor ‘svg’ element. Null if the given element is the outermost svg element.
(Inherited from SVGElement.)
Public propertyParentElement
Gets the parent Element of this node.
(Inherited from Node.)
Public propertyParentNode
The parent of this node. All nodes, except Attr, Document, DocumentFragment, Entity, and Notation may have a parent. However, if a node has just been created and not yet added to the tree, or if it has been removed from the tree, this is null.
(Inherited from Node.)
Public propertyPathLength
Corresponds to attribute pathLength on the given element.
(Inherited from SVGGeometryElement.)
Public propertyPathSegList
Provides access to the base (i.e., static) contents of the ‘d’ attribute in a form which matches one-for-one with SVG's syntax. Thus, if the ‘d’ attribute has an "absolute moveto (M)" and an "absolute arcto (A)" command, then pathSegList will have two entries: a SVG_PATHSEG_MOVETO_ABS and a SVG_PATHSEG_ARC_ABS.
Public propertyPrefix
The namespace prefix of this node, or null if it is unspecified. When it is defined to be null, setting it has no effect
(Inherited from Element.)
Public propertyPreviousElementSibling
Returns the previous sibling element node of this element. null if this element has no element sibling nodes that come before this one in the document tree.
(Inherited from Element.)
Public propertyPreviousSibling
The node immediately preceding this node. If there is no such node, this returns null.
(Inherited from Node.)
Public propertyRequiredExtensions
Corresponds to attribute ‘requiredExtensions’ on the given element.
(Inherited from SVGGraphicsElement.)
Public propertyRequiredFeatures
Corresponds to attribute ‘requiredFeatures’ on the given element.
(Inherited from SVGGraphicsElement.)
Public propertySchemaTypeInfo
The type information associated with this element.
(Inherited from Element.)
Public propertyShadowRoot
Returns shadowRoot stored on this element or null if it's closed.
(Inherited from Element.)
Public propertyStyle
Corresponds to attribute ‘style’ on the given element. If the user agent does not support styling with CSS, then this attribute must always have the value of null.
(Inherited from SVGElement.)
Public propertySystemLanguage
Corresponds to attribute ‘systemLanguage’ on the given element.
(Inherited from SVGGraphicsElement.)
Public propertyTagName
The name of the element.
(Inherited from Element.)
Public propertyTextContent
This attribute returns the text content of this node and its descendants. When it is defined to be null, setting it has no effect. On setting, any possible children this node may have are removed and, if it the new string is not empty or null, replaced by a single Text node containing the string this attribute is set to.
(Inherited from Element.)
Public propertyTransform
Corresponds to attribute ‘transform’ on the given element.
(Inherited from SVGGraphicsElement.)
Public propertyViewportElement
The element which established the current viewport. Often, the nearest ancestor ‘svg’ element. Null if the given element is the outermost svg element.
(Inherited from SVGElement.)
See Also