[SVGMobile12] A.7.5 SVGRGBColor attributes should not be readonly

The SVGRGBColor attributes red, green and blue are specified as
readonly.  Yet the getRGBColorTrait() in Section A.7.12 clearly states
that the return value is a "a copy of the trait value".  Thus,
developers should be able to freely modify these values as they can
for SVGRect, etc to ease the code and optimize performance (doesn't
require creation of multiple SVGRGBColor objects):

var color = ele.getRGBColorTrait("fill");
color.red += 20;
color.green = 0;
ele.setRGBColorTrait("fill", color);

instead of:

var color = ele.getRGBColorTrait("fill");
ele.setRGBColorTrait("fill",
document.documentElement.createSVGRGBColor(color.red + 20, 0,
color.blue));

Please remove the "readonly" specifier from the red, green and blue
attributes of the SVGRGBColor interface.

Thanks,
Jeff Schiller

Received on Tuesday, 3 January 2006 19:22:31 UTC