Re: [SVG12] baseVal and getAttribute()

T Rowley wrote:
> Should modification of the baseVal in the SVG DOM change the return of 
> getAttribute()?

Yes, the baseVal *is* the DOM value, except typed (where applicable). 
Base values are discussed at lengtt in the sandwich model part (and 
others, though more indirectly) of SMIL Animation 
(http://www.w3.org/TR/smil-animation/#AnimationSandwichModel).

Note that as per DOM 3 implementations are allowed to normalize 
attribute values that they know about, so if it is more efficient for 
your situation you could keep in memory only the typed baseVal, and use 
that to compute the string returned by getAttributeNS().

-- 
Robin Berjon
   Research Scientist
   Expway, http://expway.com/

Received on Friday, 6 May 2005 19:20:52 UTC