html5/spec Overview.html,1.1632,1.1633

Update of /sources/public/html5/spec
In directory hutz:/tmp/cvs-serv20302

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

Index: Overview.html
===================================================================
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:14:48 UTC