W3C home > Mailing lists > Public > public-webapps@w3.org > July to September 2008

Re: [whatwg] WebIDL and HTML5

From: Boris Zbarsky <bzbarsky@MIT.EDU>
Date: Mon, 25 Aug 2008 11:02:10 -0400
Message-ID: <48B2C972.8030206@mit.edu>
To: Garrett Smith <dhtmlkitchen@gmail.com>
CC: Web Applications Working Group WG <public-webapps@w3.org>

Garrett Smith wrote:
>>   [Null=Null, Undefined=Null]
>>   [Null=Null, Undefined=Empty]
>>   [Null=Empty, Undefined=Empty]
>>   [Null=Null, Undefined=String]
>>   [Null=Empty, Undefined=String]
>>   [Null=String, Undefined=String]
>>
>> ...so that we can do, e.g.:
>>
>>   Window open([Null=String, Undefined=String] in DOMString url,
>>               [Null=String, Undefined=Empty] in DOMString name,
>>               [Null=Empty, Undefined=Empty] in DOMString features);
>>
>> ...or whatever is appropriate.
> 
> Why such complexities?

Because existing implementations sometimes treat null as meaning empty 
string and sometimes as meaning the string "null" and sometimes as 
meaning a special value that is not actually quite the same as the empty 
string.  Note that some of this is required by some existing specifications.

Similar for undefined.

Expressing that in the IDL requires the above setup, unless you have a 
better proposal?

-Boris
Received on Monday, 25 August 2008 15:10:19 GMT

This archive was generated by hypermail 2.3.1 : Tuesday, 26 March 2013 18:49:27 GMT