W3C home > Mailing lists > Public > www-svg@w3.org > January 2007

Liveness of base type objects needs to be specified

From: T Rowley <tor@cs.brown.edu>
Date: Fri, 12 Jan 2007 11:21:41 -0600
Message-ID: <45A7C3A5.5060408@cs.brown.edu>
To: www-svg <www-svg@w3.org>

Liveness of the SVG base types when manipulated should be be clearly 
laid out in the specification.  A particular problem that comes to mind 
is what should happen when a base type object obtained through some 
means (the SVGSVGElement createSVG* or by inspection of another 
element's attributes) is added to a SVG*List.

Some examples with SVGLength:

   val = svgElement.createSVGLength();
   textElement.x.baseVal.replaceItem(val, 0);
   val.value = 42;                               // textElement.x now 42?
   textElement.x.baseVal.getItem(0).value = 13;  // val now 13?

-------

   textElement.x.baseVal.replaceItem(rectElement.x.baseVal, 0);
   rectElement.x.baseVal = 42;                   // textElement.x now 42?
   textElement.x.baseVal.getItem(0).value = 13;  // rectElement.x now 13?
Received on Friday, 12 January 2007 17:21:57 GMT

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