spec/Overview.html 1.1633 2462 Clarify that if a DB has version='', the

Clarify that if a DB has version='', then openDatabase() with a version
won't work. (credit: ab) (whatwg r2462)

openDatabase()
http://people.w3.org/mike/diffs/html5/spec/Overview.1.1633.html#dom-opendatabase

http://people.w3.org/mike/diffs/html5/spec/Overview.diff.html
http://dev.w3.org/cvsweb/html5/spec/Overview.html?r1=1.1632&r2=1.1633&f=h
http://html5.org/tools/web-apps-tracker?from=2461&to=2462

===================================================================
RCS file: /sources/public/html5/spec/Overview.html,v
retrieving revision 1.1632
retrieving revision 1.1633
diff -u -d -r1.1632 -r1.1633
--- Overview.html 26 Nov 2008 10:26:44 -0000 1.1632
+++ Overview.html 26 Nov 2008 11:14:37 -0000 1.1633
@@ -30551,10 +30551,9 @@
   must use and create databases from the <a href=#origin-0>origin</a> of the
   <a href=#active-document>active document</a> of the <a href=#browsing-context>browsing context</a> of
   the <code><a href=#window>Window</a></code> object on which the method was invoked.<p>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 <code><a href=#invalid_state_err>INVALID_STATE_ERR</a></code> exception.<p>The user agent may also raise a <code><a href=#security_err>SECURITY_ERR</a></code> exception
-  in case the request violates a policy decision (e.g. if the user
-  agent is configured to not allow the page to open databases).<p>Otherwise, if the database version provided is the empty string,
+  database already exists but has a different version, or no version,
+  then the method must raise an <code><a href=#invalid_state_err>INVALID_STATE_ERR</a></code>
+  exception.<p>Otherwise, if the database version provided is the empty string,
   or if the database doesn't yet exist, or if the database exists and
   the version provided to the <code title=dom-opendatabase><a href=#dom-opendatabase>openDatabase()</a></code> method is the same as
   the current version associated with the database, then the method
@@ -30562,7 +30561,10 @@
   that has the name that was given. If no such database exists, it
   must be created first.<p>All strings including the empty string are valid database
   names. Database names must be compared in a
-  <a href=#case-sensitive>case-sensitive</a> manner.<p class=note>Implementations can support this even in
+  <a href=#case-sensitive>case-sensitive</a> manner.<p>The user agent may raise a <code><a href=#security_err>SECURITY_ERR</a></code> exception
+  instead of returning a <code><a href=#database>Database</a></code> object if the request
+  violates a policy decision (e.g. if the user agent is configured to
+  not allow the page to open databases).<p class=note>Implementations can support this even in
   environments that only support a subset of all strings as database
   names by mapping database names (e.g. using a hashing algorithm) to
   the supported set of names.<p>User agents are expected to use the display name and the

Received on Wednesday, 26 November 2008 11:18:07 UTC