W3C home > Mailing lists > Public > public-webapps@w3.org > April to June 2011

Re: [indexeddb] IDBDatabase.setVersion non-nullable parameter has a default for null

From: Mark Pilgrim <pilgrim@google.com>
Date: Fri, 10 Jun 2011 20:20:15 -0400
Message-ID: <BANLkTikm0KZ9DY236RWkO=M+EWEJtSjtzQ@mail.gmail.com>
To: Jonas Sicking <jonas@sicking.cc>, Eliot Graff <Eliot.Graff@microsoft.com>, "public-webapps@w3.org" <public-webapps@w3.org>, Mark Pilgrim <pilgrim@google.com>, Israel Hilerio <israelh@microsoft.com>, Jeremy Orlow <jorlow@chromium.org>
On Jun 10, 2011 8:13 PM, "Cameron McCormack" <cam@mcc.id.au> wrote:
>
> Mark Pilgrim:
> > What about setVersion() with no arguments? I ask because WebKit
> > currently treats it like setVersion("undefined") and I'm in the
> > process of fixing it in about 19 places.
>
> That’s the right behaviour.
>

That is highly unintuitive. What's the point of listing the argument as "not
optional" if it is, in fact, completely optional? (For that matter, why list
it as non-nullable if null is treated like the empty string and the empty
string is an acceptable value?)
Received on Saturday, 11 June 2011 00:20:46 GMT

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