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

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 UTC