wiki:SVG properties

Version 2 (modified by Said Abou-Hallawa, 3 years ago) (diff)

--

SVG Properties

What is an SVG property?

It is a data type which can be primitive DOM type or SVG type. Example of primitive types are int, float, boolean. Examples for DOM type is DOMString. And examples for SVG types are SVGNumber, SVGNumberList, SVGLength, SVGLengthList, SVGAngle, SVGPoint, SVGPointList.

What is so special about SVG property?

  1. It has its own DOM interface which is separate from getAttribute() and setAttribute() methods.
  2. It is a reflection of a DOM attribute. This means, setAttribute() should, affect the SVG property once it is called. Also getAttribute() should reflect the latest changed value of the SVG property.