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

I made these changes.

E

> -----Original Message-----
> From: public-webapps-request@w3.org [mailto:public-webapps-
> request@w3.org] On Behalf Of Jonas Sicking
> Sent: Monday, August 22, 2011 7:20 PM
> To: Israel Hilerio
> Cc: public-webapps@w3.org; Tom Bolds
> Subject: Re: [indexeddb] Updates to the IDBCursor.advance method text and
> exception list.
> 
> On Mon, Aug 22, 2011 at 5:24 PM, Israel Hilerio <israelh@microsoft.com>
> wrote:
> > 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.
> 
> Sounds good to me.
> 
> / Jonas
> 

Received on Thursday, 25 August 2011 21:25:57 UTC