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

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

From: David Flanagan <dflanagan@mozilla.com>
Date: Thu, 25 Aug 2011 15:02:52 -0700
Message-ID: <4E56C68C.7070808@mozilla.com>
To: "www-dom@w3.org" <www-dom@w3.org>
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?

     David
Received on Thursday, 25 August 2011 22:03:30 GMT

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