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?

Received on Thursday, 25 August 2011 22:03:30 UTC

This archive was generated by hypermail 2.3.1 : Tuesday, 20 October 2015 10:46:18 UTC