W3C home > Mailing lists > Public > public-webapi@w3.org > May 2008

Re: [selectors-api] Extended Attribute [NoNull] in the IDL

From: Boris Zbarsky <bzbarsky@MIT.EDU>
Date: Fri, 02 May 2008 22:11:38 -0500
Message-ID: <481BD7EA.3020209@mit.edu>
To: Cameron McCormack <cam@mcc.id.au>, "Web APIs WG (public)" <public-webapi@w3.org>

Cameron McCormack wrote:
>> In that case, the null behavior doesn't make any sense to me...  I would  
>> expect querySelector(null) to either behave as querySelector("null") (as  
>> in Opera) or as querySelector("") (as in Gecko and apparently Webkit)...
> 
> If there’s a need for null to stringify to "", then I can add another
> extended attribute to Web IDL.

I think null sometimes stringifies to "" and sometimes to "null", depending on 
the interface.  For example, the current CSSOM APIs assume the former.  In fact, 
most cases do the former.  I think the latter is pretty rare.
Received on Saturday, 3 May 2008 03:12:39 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Saturday, 3 May 2008 03:12:44 GMT