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

RE: SVG12: trait access on illegal names

From: Jon Ferraiolo <jonf@adobe.com>
Date: Sun, 1 Jan 2006 15:45:00 -0800
Message-ID: <6ECA24BE410D994496A2AE995367C5C84F8474@namail3.corp.adobe.com>
To: "Bjoern Hoehrmann" <derhoermi@gmx.net>, "Robin Berjon" <robin.berjon@expway.fr>
Cc: <www-svg@w3.org>

Bjoern,
Here is the exact text from the latest spec (http://www.w3.org/TR/SVGMobile12/svgudom.html#svg::TraitAccess):

----------------
The trait setter methods will consider a value unsupported when it complies with the definition for an 'unsupported value'. This will result in a DOMException thrown with the NOT_SUPPORTED_ERR code. 
----------------

So, what I think Robin was saying is that "+" is not defined as a legal value within the Tiny 1.2 spec, and thus is an "unsupported value", and therefore will raise an NOT_SUPPORTED_ERR DOMException.

I think the above text is clear and addresses the issue sufficiently, but it would be better to reword the above quote using "MUST" instead of "WILL", such as:

----------------
User Agents must implement the trait setter methods such that trait values which represent "unsupported values" {hyperlink to definition of "unsupported values"} result in a DOMException with the NOT_SUPPORTED_ERR code. 
----------------

In response to your IFF below, I don't think we want to say that "...implementations are required to not support traits they are not required to support..." because that is bound to cause problems down the road when future versions of the language come out and might extend some of the trait definitions. Note that the DOM3 definition of NOT_SUPPORTED_ERR isn't about what a specification says, but instead what an implementation supports. Here is the exact quote (with capitalization added for emphasis):

----------------
NOT_SUPPORTED_ERR
    If the IMPLEMENTATION does not support the requested type of object or operation. 
----------------

Jon


-----Original Message-----
From: www-svg-request@w3.org [mailto:www-svg-request@w3.org] On Behalf Of Bjoern Hoehrmann
Sent: Sunday, January 01, 2006 3:01 PM
To: Robin Berjon
Cc: www-svg@w3.org
Subject: Re: SVG12: trait access on illegal names


* Robin Berjon wrote:
>The specification clearly states that user-agents MUST raise a  
>NOT_SUPPORTED_ERR whenever one attempts to use trait methods for  
>traits which are not supported by the UA. Therefore "+" is not  
>supported and throws an expected NOT_SUPPORTED_ERR.

Iff implementations are required to not support traits they are not
required to support this is true indeed; I was not able to find such
a requirement though.
-- 
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 Sunday, 1 January 2006 23:44:12 GMT

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