- From: <bugzilla@jessica.w3.org>
- Date: Fri, 07 Oct 2011 17:23:17 +0000
- To: public-webapps@w3.org
http://www.w3.org/Bugs/Public/show_bug.cgi?id=14404 Summary: Version of an IDBDatabase from an aborted version change transaction needs to be specified Product: WebAppsWG Version: unspecified Platform: All OS/Version: All Status: NEW Severity: normal Priority: P2 Component: Indexed Database API AssignedTo: dave.null@w3.org ReportedBy: me@kylehuey.com QAContact: member-webapi-cvs@w3.org CC: mike@w3.org, public-webapps@w3.org Consider the following for a database that does not already exist: var db; var request = indexedDB.open(name, 1); request.onupgradeneeded = function() { db = request.result; throw "STOP"; } request.onerror = function() { alert(db.version); } What should the version be here? The new version? The old version? Something else? By my reading of the spec, since the version is not supposed to change throughout the lifetime of an IDBDatabase, the answer is the new version, which seems quite unintuitive since the upgrade failed. -- Configure bugmail: http://www.w3.org/Bugs/Public/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
Received on Friday, 7 October 2011 17:23:23 UTC