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

[indexeddb] Updates to the IDBCursor.advance method text and exception list.

From: Israel Hilerio <israelh@microsoft.com>
Date: Tue, 23 Aug 2011 00:24:49 +0000
To: "public-webapps@w3.org" <public-webapps@w3.org>
CC: Tom Bolds <thombo@microsoft.com>
Message-ID: <F695AF7AA77CC745A271AD0F61BBC61E3D218ACF@TK5EX14MBXC115.redmond.corp.microsoft.com>
I wanted to confirm with you that we want to add the following text to the IDBCursor.advance to keep it consistent with IDBCursor.continue:

"Before this method returns, unless an exception was thrown, it sets the got value flag on the cursor to false.

Calling this method more than once before the cursor data has been loaded is not allowed and results in a NOT_ALLOWED_ERR exception being thrown. For example, calling advance() twice from the same onsuccess handler results in a NOT_ALLOWED_ERR being thrown on the second call.

IDBDatabaseException:
* TRANSACTION_INACTIVE_ERR - The transaction this IDBCursor belongs to is not active.
* NOT_ALLOWED_ERR - The cursor is currently being iterated, or has iterated past its end."

If we agree, we can make this change.

Israel
Received on Tuesday, 23 August 2011 00:25:18 GMT

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