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

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
function.

/ Jonas

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