W3C home > Mailing lists > Public > www-dom@w3.org > July to September 2011

Re: [DOMCore] is an empty namespace always equal to a null namespace?

From: Ms2ger <ms2ger@gmail.com>
Date: Fri, 26 Aug 2011 14:22:55 +0200
Message-ID: <4E57901F.6030607@gmail.com>
To: David Flanagan <dflanagan@mozilla.com>
CC: "www-dom@w3.org" <www-dom@w3.org>
On 08/26/2011 12:02 AM, David Flanagan wrote:
> The setAttributeNS() algorithm explicitly includes the following step:
>
>> If namespace is the empty string, let namespace be null.
>
> getAttributeNS, hasAttributeNS and removeAttributeNS do not include this
> step, and, as the spec is currently written, I think they would treat ""
> differently than null. Is that an error in the spec?

I believe so. Fixed: <http://dvcs.w3.org/hg/domcore/rev/13f51d09d178>.

Thanks
Ms2ger
Received on Friday, 26 August 2011 12:23:23 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Friday, 22 June 2012 06:14:08 GMT