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

[IndexedDB] (editorial) outdated example in "3.2.1 The IDBRequest Interface" section

From: Maxime RETY <maxime.rety@gmail.com>
Date: Fri, 30 Dec 2011 16:05:24 +0100
Message-ID: <CALxTrUhGiho91=nFcro0TqpYiAKYK06vN8kMa6TArmGAT5Q3Og@mail.gmail.com>
To: public-webapps@w3.org

The example shown at the top of the "3.2.1 The IDBRequest Interface"
section is outdated.

The first line :

var request = indexedDB.open('AddressBook', 'Address Book');

shows a call to indexedDB.open method with an invalid second parameter,
which would fire an error (NS_ERROR_DOM_INDEXEDDB_NON_TRANSIENT_ERR).

An optional version number (type "unsigned long long") is indeed expected
as second parameter, but the example provides a string instead.

It was possible a long time ago to provide a "description" as second
parameter (http://www.w3.org/TR/2010/WD-IndexedDB-20100819/#requests) but
it's no longer the case.

Kind Regards,

Maxime Réty
Received on Friday, 30 December 2011 20:02:25 UTC

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