W3C home > Mailing lists > Public > www-svg@w3.org > May 2005

Re: [SVG12] baseVal and getAttribute()

From: Robin Berjon <robin.berjon@expway.fr>
Date: Sat, 07 May 2005 04:20:45 +0900
Message-ID: <427BC38D.6000206@expway.fr>
To: T Rowley <tor@cs.brown.edu>
Cc: www-svg@w3.org

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 GMT

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