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

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

Received on Monday, 26 May 2008 12:22:51 UTC