W3C home > Mailing lists > Public > public-script-coord@w3.org > April to June 2012

Re: [IDL] rationale for undefined -> null in nullable types

From: Cameron McCormack <cam@mcc.id.au>
Date: Wed, 09 May 2012 14:14:00 +0200
Message-ID: <4FAA5F88.8040500@mcc.id.au>
To: Anne van Kesteren <annevk@opera.com>
CC: public-script-coord@w3.org
Anne van Kesteren:
> We were wondering what the rationale is for treating undefined identical
> to null in nullable types. The change happened over 10 months ago, but
> there does not appear to be related mailing list discussed.
> http://dev.w3.org/cvsweb/2006/webapi/WebIDL/Overview.xml?f=h;rev=1.295

I think undefined needs to be treated as null, at least with the current 
formulations of various DOM operations.  Something like:

   <!DOCTYPE html>
   <body><span>hello </span>
   var n = document.createTextNode("there");
   document.body.insertBefore(n, undefined);

needs to behave the same as insertBefore(n, null).
Received on Wednesday, 16 May 2012 23:40:10 UTC

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 17:14:06 UTC