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

Re: SVG12: trait access on illegal names

From: Robin Berjon <robin.berjon@expway.fr>
Date: Thu, 19 May 2005 14:44:36 +0900
Message-ID: <428C27C4.4070203@expway.fr>
To: Bjoern Hoehrmann <derhoermi@gmx.net>
Cc: www-svg@w3.org

Dearest Björn,

Bjoern Hoehrmann wrote:
>   From http://www.w3.org/TR/2005/WD-SVGMobile12-20050413/svgudom.html it
> seems the draft is unclear how the various trait access operations will
> behave when syntactically invalid parameters are passed, e.g.
>   getTrait("+")
> does not appear to raise an exception. Please change the draft such that
> such illegal parameters raise an exception, e.g. a INVALID_CHARACTER_ERR
> DOMException.

For any unknown trait name, the implementation will throw a DOMException 
with code NOT_SUPPORTED_ERR. Since there is no "+" trait, an exception 
will be thrown for your case. Differentiating between various types of 
non-existent traits incurs higher cost for implementations with no 
obvious gain.

Robin Berjon
   Research Scientist
   Expway, http://expway.com/
Received on Thursday, 19 May 2005 05:44:36 UTC

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 22:54:06 UTC