webDB; hixie: example intro correction (whatwg r5315)

webDB; hixie: example intro correction (whatwg r5315)

http://dev.w3.org/cvsweb/html5/webdatabase/Overview.html?r1=1.92&r2=1.93&f=h
http://html5.org/tools/web-apps-tracker?from=5314&to=5315

===================================================================
RCS file: /sources/public/html5/webdatabase/Overview.html,v
retrieving revision 1.92
retrieving revision 1.93
diff -u -d -r1.92 -r1.93
--- Overview.html 10 Aug 2010 21:11:20 -0000 1.92
+++ Overview.html 20 Aug 2010 19:20:39 -0000 1.93
@@ -185,7 +185,7 @@
   </style><link href="http://www.w3.org/StyleSheets/TR/W3C-ED" rel="stylesheet" type="text/css"><div class="head">
    <p><a href="http://www.w3.org/"><img alt="W3C" height="48" src="http://www.w3.org/Icons/w3c_home" width="72"></a></p>
    <h1>Web SQL Database</h1>
-   <h2 class="no-num no-toc" id="editor-s-draft-10-august-2010">Editor's Draft 10 August 2010</h2>
+   <h2 class="no-num no-toc" id="editor-s-draft-20-august-2010">Editor's Draft 20 August 2010</h2>
    <dl><dt>Latest Published Version:</dt>
     <dd><a href="http://www.w3.org/TR/webdatabase/">http://www.w3.org/TR/webdatabase/</a></dd>
     <dt>Latest Editor's Draft:</dt>
@@ -258,7 +258,7 @@
   </ul><!-- UNDER NO CIRCUMSTANCES IS THE PRECEDING LIST TO BE REMOVED OR EDITED WITHOUT TALKING TO IAN FIRST --><!-- status of document, group responsible (required) --><p>The W3C <a href="http://www.w3.org/2008/webapps/">Web Applications
   Working Group</a> is the W3C working group responsible for this
   specification's progress along the W3C Recommendation track.
-  This specification is the 10 August 2010 Editor's Draft.
+  This specification is the 20 August 2010 Editor's Draft.
   </p><!-- required patent boilerplate --><p>This document was produced by a group operating under the <a href="http://www.w3.org/Consortium/Patent-Policy-20040205/">5
   February 2004 W3C Patent Policy</a>. W3C maintains a <a href="http://www.w3.org/2004/01/pp-impl/42538/status" rel="disclosure">public list of
   any patent disclosures</a> made in connection with the deliverables
@@ -309,12 +309,9 @@
   client-side databases using SQL.<p>The API is asynchronous, so authors are likely to find anonymous
   functions (lambdas) very useful in using this API.<p>Here is an example of a script using this API. First, a function
   <code title="">prepareDatabase()</code> is defined. This function
-  tries to create the database if necessary, giving it one table
-  called "docids" with two columns ("id" and "name"). If it is
-  successful, or if the table doesn't need creating, it calls a
-  section function, <code title="">getDatabase()</code>, which obtains
-  a handle to the database, and then calls the function to do the
-  actual work, in this case <code title="">showDocCount()</code>.<pre>function prepareDatabase(ready, error) {
+  returns a handle to the database, first creating the database if
+  necessary. The example then calls the function to do the actual
+  work, in this case <code title="">showDocCount()</code>.<pre>function prepareDatabase(ready, error) {
   return openDatabase('documents', '1.0', 'Offline document storage', 5*1024*1024, function (db) {
     db.changeVersion('', '1.0', function (t) {
       t.executeSql('CREATE TABLE docids (id, name)');

Received on Friday, 20 August 2010 19:21:28 UTC