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

Re: Inconsistency between IDBObjectStore.openCursor, IDBIndex.openCursor, and IDBIndex.openKeyCursor

From: Jonas Sicking <jonas@sicking.cc>
Date: Thu, 12 May 2011 18:46:43 -0700
Message-ID: <BANLkTimD6_G86czLsV1cFe-2unxsEPAOGw@mail.gmail.com>
To: Israel Hilerio <israelh@microsoft.com>
Cc: "public-webapps@w3.org" <public-webapps@w3.org>, David Major <David.Major@microsoft.com>
On Thursday, May 12, 2011, Israel Hilerio <israelh@microsoft.com> wrote:
> Async API:
> IDBObjectStore.openCursor stipulates that "The steps are run with this IDBObjectStore as source ..."
> IDBIndex.openCursor stipulates that "The steps are run with this IDBIndex as source ..."
> IDBIndex.openKeyCursor stipulates that "The steps are run with this IDBObjectStore as source ..."
>
> Sync API:
> IDBObjectStoreSync.openCursor stipulates that "The steps are run with this IDBObjectStoreSync as source ..."
> IDBIndexSync.openCursor stipulates that "The steps are run with this IDBIndexSync as source ..."
> IDBIndexSync.openKeyCursor stipulates that "The steps are run with this IDBIndexSync as source ..."
>
> Should the source be IDBIndex for IDBIndex.openCursor and IDBIndex.openKeyCursor (similarly for the sync APIs)?

The source for the various open cursor calls should always be te
object on which the call was made. So judging by your list above
IDBIndex.openKeyCursor needs to be fixed.

Thanks for finding this!

/ Jonas
Received on Friday, 13 May 2011 01:47:10 GMT

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