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

Re: [IndexedDB] question about description argument of IDBFactory::open()

From: Jonas Sicking <jonas@sicking.cc>
Date: Mon, 9 Aug 2010 13:38:58 -0700
Message-ID: <AANLkTikLDzd4DWQCMbAmDyFPCkbVV1nxQNg2Emw1=t+o@mail.gmail.com>
To: Andrei Popescu <andreip@google.com>
Cc: Webapps WG <public-webapps@w3.org>
On Mon, Aug 9, 2010 at 1:13 PM, Andrei Popescu <andreip@google.com> wrote:
> Hi,
> While implementing IDBFactory::open(), we thought that the
> "description" argument is optional but we were surprised to find out
> it's actually mandatory. Is there any reason not to make this argument
> optional? And, assuming it is optional, should the default value be
> the empty string? Also, how should the null and undefined values be
> treated? My suggestion would be to treat them as if the argument
> wasn't specified, so the description of the database would not change.

I agree optional makes sense, defaulting to empty string.

null and undefined should IMHO be defined by webidl. I forget what the
syntax is, but I believe it's possible to enforce that the passed in
value is converted to a "real" string before passed to the actual

/ Jonas
Received on Monday, 9 August 2010 20:39:51 UTC

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 18:13:10 UTC