[whatwg] Database API feedback - opening an unversioned database with a version

Aaron Boodman aa at google.com
Mon May 26 12:22:51 PDT 2008


Quick thing. I don't think the spec makes it clear whether it is
allowed to do this:

var db1 = window.openDatabase("foo", "", "", "");
var db2 = window.openDatabase("foo", "1", "", "");

I think the answer should be "no". Thoughts?

If so, perhaps edit this sentence:

If the database version provided is not the empty string, and the
database already exists but has a different version, then the method
must raise an INVALID_STATE_ERR exception.

To read like this:

If the database version provided is not the empty string, and the
database already exists but has a different version, or no version,
then the method must raise an INVALID_STATE_ERR exception.

- a



More information about the whatwg mailing list