Skip to content

Commit

Permalink
[wr] (2) Clarify that if a DB has version='', then openDatabase() wit…
Browse files Browse the repository at this point in the history
…h a version won't work. (credit: ab)

git-svn-id: http://svn.whatwg.org/webapps@2462 340c8d12-0b0e-0410-8428-c7bf67bfef74
  • Loading branch information
Hixie committed Nov 26, 2008
1 parent dfa3030 commit e660a38
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 12 deletions.
14 changes: 8 additions & 6 deletions index
Expand Up @@ -37775,12 +37775,9 @@ have a variable and unknowable number of literals coming:
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>

<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>
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>Otherwise, if the database version provided is the empty string,
or if the database doesn't yet exist, or if the database exists and
Expand All @@ -37794,6 +37791,11 @@ have a variable and unknowable number of literals coming:
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
Expand Down
14 changes: 8 additions & 6 deletions source
Expand Up @@ -42982,12 +42982,9 @@ have a variable and unknowable number of literals coming:
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>

<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>
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>Otherwise, if the database version provided is the empty string,
or if the database doesn't yet exist, or if the database exists and
Expand All @@ -43002,6 +42999,11 @@ have a variable and unknowable number of literals coming:
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
Expand Down

0 comments on commit e660a38

Please sign in to comment.