W3C home > Mailing lists > Public > www-svg@w3.org > September 2008

baseVal / animVal clarfication (sorry if this comes in twice)

From: Sigurd Lerstad <sigurd@lerstad.com>
Date: Thu, 4 Sep 2008 21:20:37 +0200
Message-ID: <1FCCAADC93AB4BA9B8E9F93A44984B3C@dellcomputer>
To: "www-svg" <www-svg@w3.org>
Hello,

I'm trying to figure out if animVal returns the same object as baseVal if 
the property is not being animated. Batik and Opera return different objects 
even if the property is not being animated.

Here is what the spec says
http://www.w3.org/TR/SVG11/types.html#InterfaceSVGAnimatedLength

*******
readonly SVGLength baseVal
The base value of the given attribute before applying any animations.

readonly SVGLength animVal
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 readonly. If the given attribute or property is not 
currently being animated, contains the same value as 'baseVal'.
*********

To me this reads as animVal should return the same object as baseVal when 
not being animated. If Batik/Opera are correct, then I suggest a clarification to the spec, something like:

"If the given attribute or property is not currently being animated, 
contains a readonly object with the same contents as 'baseVal'. "

--
Sigurd Lerstad
Received on Thursday, 4 September 2008 23:40:25 GMT

This archive was generated by hypermail 2.3.1 : Friday, 8 March 2013 15:54:40 GMT