W3C home > Mailing lists > Public > public-webapps@w3.org > October to December 2011

Re: Indexed database API autoIncrement

From: Kyle Huey <me@kylehuey.com>
Date: Sun, 23 Oct 2011 17:24:56 -0400
Message-ID: <CAP045Arj1kfJW2pHZqNJ8CniWZLrrMqiDeM+a=xuVwoqWMSvQQ@mail.gmail.com>
To: Futomi Hatano <info@html5.jp>
Cc: public-webapps@w3.org
On Sun, Oct 23, 2011 at 7:20 AM, Futomi Hatano <info@html5.jp> wrote:

> Hello everyone,
>
> I'm not a W3C member, can I send a mail to the list?
>

Yes, this mailing list is open to anyone.

I've tried to use Indexed database API using IE10 PP3 and Chrome 16 dev.
> I found a different behavior between the two.
> I set autoIncrement to true when I created a Object Store as below.
>
> var store = db.createObjectStore(store_name, { keyPath: 'id',
> autoIncrement: true });
>
> Then, I added some records.
>
> IE10 PP3 set the key value of the first recored to 0, while Chrome 16 set
> it to 1.
> Which is correct?
>

This is a good question.  I don't believe that the spec specifies this.

- Kyle
Received on Sunday, 23 October 2011 21:25:24 GMT

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