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: Cameron McCormack <cam@mcc.id.au>
Date: Wed, 8 Jun 2011 09:43:58 +1200
To: Israel Hilerio <israelh@microsoft.com>
Cc: Jonas Sicking <jonas@sicking.cc>, Jeremy Orlow <jorlow@chromium.org>, "public-webapps@w3.org" <public-webapps@w3.org>
Message-ID: <20110607214357.GA31422@wok.mcc.id.au>
Israel Hilerio:
> Are we saying that we should remove the "TreatNullAs=EmptyString" and
> keep the parameter restriction that "version" cannot be nullable?

The [TreatNullAs=EmptyString] behaviour is now the default, so you
definitely want to remove it.  When you say “keep the parameter
restriction that "version" cannot be nullable” do you mean keep the type
as “DOMString”?  If so, then that seems like the right thing to do.
Only make it “DOMString?” if you want to distinguish between null being
passed and "" being passed.

Cameron McCormack ≝ http://mcc.id.au/
Received on Tuesday, 7 June 2011 21:44:37 UTC

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