W3C home > Mailing lists > Public > public-webapps@w3.org > January to March 2012

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

From: Eliot Graff <Eliot.Graff@microsoft.com>
Date: Thu, 5 Jan 2012 04:07:28 +0000
To: Maxime RETY <maxime.rety@gmail.com>, "public-webapps@w3.org" <public-webapps@w3.org>
Message-ID: <CE3A5BFD1228D84A8D9C158EEC195FD53D732121@TK5EX14MBXW603.wingroup.windeploy.ntdev.microsoft.com>
The sample is now fixed in the Editor's draft:

ECMAScript

 var request = indexedDB.open('AddressBook', '15');
 request.onsuccess = function(evt) {...};
 request.onerror = function(evt) {...};

Thanks for the catch.

Eliot



From: Maxime RETY [mailto:maxime.rety@gmail.com] 
Sent: Friday, December 30, 2011 7:05 AM
To: public-webapps@w3.org
Subject: [IndexedDB] (editorial) outdated example in "3.2.1 The IDBRequest Interface" section

Hi,

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 Thursday, 5 January 2012 04:08:10 GMT

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