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

Re: SVG12: setAttributeNS exceptions

From: Antoine Quint <ml@graougraou.com>
Date: Mon, 24 Oct 2005 10:52:38 +0200
Message-Id: <2F7D4E49-C278-443E-A406-DDFA4F17007F@graougraou.com>
Cc: www-svg@w3.org
To: Bjoern Hoehrmann <derhoermi@gmx.net>

Hello Björn,

On 4 juil. 2005, at 04:21, Bjoern Hoehrmann wrote:

>   http://www.w3.org/TR/2005/WD-SVGMobile12-20050413/svgudom.html  
> states
> that setAttributeNS does not throw any exception, this is not  
> compatible
> with DOM Level 3 Core and makes little sense, please do not encourage
> ignoring errors silently, and make this method compatible with the  
> DOM.

Thanks for catching this mistake, the following exceptions have now  
been added to Element::setAttributeNS() in the uDOM:

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

NO_MODIFICATION_ALLOWED_ERR: Raised if the attribute cannot be modified.

INVALID_CHARACTER_ERR: Raised if the specified local name is not an  
XML name.

NAMESPACE_ERR: Raised if the qualifiedName is malformed per the  
Namespaces in XML specification, if the qualifiedName has a prefix  
and the namespaceURI is null, if the qualifiedName has a prefix that  
is "xml" and the namespaceURI is different from "http://www.w3.org/ 
XML/1998/namespace", if the qualifiedName or its prefix is "xmlns"  
and the namespaceURI is different from "http://www.w3.org/2000/ 
xmlns/", or if the namespaceURI is "http://www.w3.org/2000/xmlns/"  
and neither the qualifiedName nor its prefix is "xmlns".

Antoine Quint — Fuchsia Design
SVG & Client-side XML Consulting
W3C SVG WG Invited Expert
Received on Monday, 24 October 2005 08:52:48 UTC

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