W3C home > Mailing lists > Public > public-webapps@w3.org > January to March 2012

[indexeddb] What should happen when specifying the wrong "mode" or "direction"?

From: Israel Hilerio <israelh@microsoft.com>
Date: Sat, 3 Mar 2012 01:41:36 +0000
To: "public-webapps@w3.org" <public-webapps@w3.org>
CC: Victor Ngo <vicngo@microsoft.com>
Message-ID: <F695AF7AA77CC745A271AD0F61BBC61E428EA58E@TK5EX14MBXC115.redmond.corp.microsoft.com>
We need to define in the spec what should happen if a developers defines an invalid "mode" or "direction".  Do we throw a TypeError Exception or revert to defauls?

FF seems to allow this behavior and reverts back to a readOnly transaction mode and a direction of next, respectively:
* db.transaction( objectStoreList, "invalidMode") ===  db.transaction( objectStoreList)
* o.openCursor(keyRange, "invalidDirection") === o.openCursor(keyRange)

We're okay with this behavior if everyone else agrees.

Received on Saturday, 3 March 2012 01:42:09 UTC

This archive was generated by hypermail 2.3.1 : Friday, 27 October 2017 07:26:38 UTC