[html5] r2462 - [wr] (2) Clarify that if a DB has version='', then openDatabase() with a version [...]

whatwg at whatwg.org whatwg at whatwg.org
Wed Nov 26 03:14:33 PST 2008


Author: ianh
Date: 2008-11-26 03:14:33 -0800 (Wed, 26 Nov 2008)
New Revision: 2462

Modified:
   index
   source
Log:
[wr] (2) Clarify that if a DB has version='', then openDatabase() with a version won't work. (credit: ab)

Modified: index
===================================================================
--- index	2008-11-26 10:56:43 UTC (rev 2461)
+++ index	2008-11-26 11:14:33 UTC (rev 2462)
@@ -37775,13 +37775,10 @@
   the <code><a href=#window>Window</a></code> object on which the method was invoked.</p>
 
   <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>
+  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>
 
-  <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>
-
   <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
@@ -37794,6 +37791,11 @@
   names. Database names must be compared in a
   <a href=#case-sensitive>case-sensitive</a> manner.</p>
 
+  <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>
+
   <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

Modified: source
===================================================================
--- source	2008-11-26 10:56:43 UTC (rev 2461)
+++ source	2008-11-26 11:14:33 UTC (rev 2462)
@@ -42982,13 +42982,10 @@
   the <code>Window</code> object on which the method was invoked.</p>
 
   <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>INVALID_STATE_ERR</code> exception.</p>
+  database already exists but has a different version, or no version,
+  then the method must raise an <code>INVALID_STATE_ERR</code>
+  exception.</p>
 
-  <p>The user agent may also raise a <code>SECURITY_ERR</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>
-
   <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
@@ -43002,6 +42999,11 @@
   names. Database names must be compared in a
   <span>case-sensitive</span> manner.</p>
 
+  <p>The user agent may raise a <code>SECURITY_ERR</code> exception
+  instead of returning a <code>Database</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>
+
   <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




More information about the Commit-Watchers mailing list