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

SVGT 1.2: uDOM.{get,set}AttributeNS inconsistent with DOM3

From: Maciej Stachowiak <mjs@apple.com>
Date: Mon, 26 Dec 2005 22:43:18 -0700
Message-Id: <0DA89A67-B467-4478-A7FC-8B5C39D8E5EB@apple.com>
To: www-svg@w3c.org

SVG Tiny 1.2 uDOM gives the following exceptions for get/setAttributeNS:

DOMException NOT_SUPPORTED_ERR: Raised if getAttributeNS tries to get  
an unsupported attribute.
DOMException NOT_SUPPORTED_ERR: Raised if setAttributeNS tries to set  
an unsupported attribute.

And specifies that some attributes are unsupported. DOM Level 3 Core  
does not allow such exceptions, so this definition of a core  
interface is in conflict. The set of attributes that may be  
unsupported does not seem like a great help to clients.

Non-SVG elements must already support all attributes, and SVG  
elements must support many.  The benefit to implementations of  
leaving some attributes unsupported seems unclear. Thefore, the  
benefit of this significant departure from the DOM spec seems low.

I recommend removing this difference and specifying these methods via  
a verbatim quote from or normative reference to DOM Level 3 Core.

Received on Tuesday, 27 December 2005 06:11:06 UTC

This archive was generated by hypermail 2.3.1 : Wednesday, 8 March 2017 09:47:05 UTC