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

SVG12: getRGBColorTrait vs non-SVGRGBColor

From: Bjoern Hoehrmann <derhoermi@gmx.net>
Date: Mon, 04 Jul 2005 04:25:49 +0200
To: www-svg@w3.org
Message-ID: <430f9e26.483091187@smtp.bjoern.hoehrmann.de>

Dear Scalable Vector Graphics Working Group,

  http://www.w3.org/TR/2005/WD-SVGMobile12-20050413/svgudom.html
appendix A.7.12 states getRGBColorTrait 

  Returns the trait value as SVGRGBColor. The returned object
  is a copy of the trait value and will not change if the
  corresponding trait changes. If the actual trait value is not
  an RGBColor (i.e. "none"), this method will return null.

and that it raises "DOMException with error code TYPE_MISMATCH_ERR if
requested trait's computed value cannot be converted to SVGRGBColor".
This is obviously inconsistent, please change the draft such that this
inconsistency is removed.

Note that it is incorrect to state that "none" is the only value for
which it might not be possible to convert the color to RGBColor, e.g.
system color keywords might represent gradient fills.

regards,
-- 
Björn Höhrmann · mailto:bjoern@hoehrmann.de · http://bjoern.hoehrmann.de
Weinh. Str. 22 · Telefon: +49(0)621/4309674 · http://www.bjoernsworld.de
68309 Mannheim · PGP Pub. KeyID: 0xA4357E78 · http://www.websitedev.de/ 
Received on Monday, 4 July 2005 02:25:57 GMT

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