W3C home > Mailing lists > Public > public-html-commits@w3.org > May 2008

html5/offline-webapps Overview.html,1.9,1.10 Overview.src.html,1.9,1.10

From: Anne van Kesteren via cvs-syncmail <cvsmail@w3.org>
Date: Wed, 28 May 2008 19:32:03 +0000
To: public-html-commits@w3.org
Message-Id: <E1K1RNT-0007Vb-R5@lionel-hutz.w3.org>

Update of /sources/public/html5/offline-webapps
In directory hutz:/tmp/cvs-serv28835

Modified Files:
	Overview.html Overview.src.html 
Log Message:
make several changes requested by PT apart from the one about event dispatching

Index: Overview.html
===================================================================
RCS file: /sources/public/html5/offline-webapps/Overview.html,v
retrieving revision 1.9
retrieving revision 1.10
diff -u -d -r1.9 -r1.10
--- Overview.html	15 May 2008 17:03:58 -0000	1.9
+++ Overview.html	28 May 2008 19:32:01 -0000	1.10
@@ -16,13 +16,13 @@
 
    <h1 id=offline-webapps>Offline Web Applications</h1>
 
-   <h2 class="no-num no-toc" id=w3c-doctype>Editor's Draft 15 May 2008</h2>
+   <h2 class="no-num no-toc" id=w3c-doctype>Editor's Draft 28 May 2008</h2>
 
    <dl>
     <dt>This Version:
 
     <dd><a
-     href="http://www.w3.org/TR/2008/ED-offline-webapps-20080515/">http://www.w3.org/TR/2008/ED-offline-webapps-20080515/</a>
+     href="http://www.w3.org/TR/2008/ED-offline-webapps-20080528/">http://www.w3.org/TR/2008/ED-offline-webapps-20080528/</a>
 
     <dt>Latest Version:
 
@@ -59,13 +59,13 @@
 
   <h2 class="no-num no-toc" id=abstract>Abstract</h2>
 
-  <p>HTML5 contains several features that address the challenge of building
-   Web applications that work while offline. This document highlights these
-   features (SQL, offline application caching APIs as well as
-   <code>online</code>/<code>offline</code> events, status, and the
-   <code>localStorage</code> API) from HTML5 and provides brief tutorials on
-   how these features might be used to create Web applications that work
-   offline. [<cite><a href="#ref-html5">HTML5</a></cite>]
+  <p>HTML&nbsp;5 contains several features that address the challenge of
+   building Web applications that work while offline. This document
+   highlights these features (SQL, offline application caching APIs as well
+   as <code>online</code>/<code>offline</code> events, status, and the
+   <code>localStorage</code> API) from HTML&nbsp;5 and provides brief
+   tutorials on how these features might be used to create Web applications
+   that work offline. [<cite><a href="#ref-html5">HTML5</a></cite>]
 
   <h2 class="no-num no-toc" id=sotd>Status of this Document</h2>
 
@@ -113,12 +113,12 @@
 
   <h2 id=sql><span class=secno>2. </span>SQL</h2>
 
-  <p>The client-side SQL database in HTML5 enables structured data storage.
-   This can be used to store e-mails locally for an e-mail application or for
-   a cart in an online shopping site. The API to interact with this database
-   is asynchronous which ensures that the user interface doesn't lock up.
-   Because database interaction can occur in multiple browser windows at the
-   same time the API supports transactions.
+  <p>The client-side SQL database in HTML&nbsp;5 enables structured data
+   storage. This can be used to store e-mails locally for an e-mail
+   application or for a cart in an online shopping site. The API to interact
+   with this database is asynchronous which ensures that the user interface
+   doesn't lock up. Because database interaction can occur in multiple
+   browser windows at the same time the API supports transactions.
 
   <p>To create a database object you use the <code>openDatabase()</code>
    method on the <code>Window</code> object. It takes four arguments: a
@@ -134,7 +134,7 @@
    <code>executeSQL()</code> method. This method takes from one to four
    arguments: a SQL statement, arguments, a SQL statement callback, and a SQL
    statement error callback. The SQL statement callback gets passed the
-   transaction object and a SQL statment result object which gives access to
+   transaction object and a SQL statement result object which gives access to
    the rows, last inserted ID, et cetera.
 
   <p>To complete the infrastructure for the notes application we'd add the
@@ -156,8 +156,8 @@
       for(var i = 0; i &lt; rs.rows.length; i++) {
         renderNote(rs.rows[i]);
       }
-    })
-  })
+    });
+  });
 }
 
 function insertNote(title, text) {
@@ -180,7 +180,8 @@
    <code>html</code> element.
 
   <p>The attribute takes a URI to a manifest, which specifies which files are
-   to be cached. A typical file looks like this:
+   to be cached. The manifest has a <code>text/cache-manifest</code> MIME
+   type. A typical file looks like this:
 
   <pre>CACHE MANIFEST
 index.html
@@ -209,8 +210,8 @@
 
   <pre>&lt;event-source src="server.cgi"></pre>
 
-  <p>(The <code>event-source</code> element is a new feature in HTML5 that
-   allows servers to continuously stream updates to a Web page.)
+  <p>(The <code>event-source</code> element is a new feature in HTML&nbsp;5
+   that allows servers to continuously stream updates to a Web page.)
 
   <p>The application cache mechanism also supports a way to opportunistically
    cache (from the server) a group of files matching a common prefix, with
@@ -222,9 +223,9 @@
 
   <h2 id=related><span class=secno>4. </span>Related APIs</h2>
 
-  <p>In addition to those APIs HTML5 also defines an <code>onLine</code>
-   attribute on the <code>Navigator</code> object so you can determine
-   whether you are currently online:
+  <p>In addition to those APIs HTML&nbsp;5 also defines an
+   <code>onLine</code> attribute on the <code>Navigator</code> object so you
+   can determine whether you are currently online:
 
   <pre>var online = navigator.onLine;</pre>
 
@@ -232,7 +233,7 @@
    and <code>offline</code> events that are both dispatched on the
    <code>Window</code> object.
 
-  <p>For simple synchronous storage access HTML5 introduces the
+  <p>For simple synchronous storage access HTML&nbsp;5 introduces the
    <code>localStorage</code> attribute on the <code>Window</code> object:
 
   <pre>localStorage["status"] = "Idling.";</pre>
@@ -243,14 +244,15 @@
    <dt>[<dfn id=ref-html5>HTML5</dfn>] (work in progress)
 
    <dd><cite><a
-    href="http://www.whatwg.org/specs/web-apps/current-work/">HTML
-    5</a></cite>, I. Hickson, editor. WHATWG, 2008.
+    href="http://www.whatwg.org/specs/web-apps/current-work/">HTML&nbsp;5</a></cite>,
+    I. Hickson, editor. WHATWG, 2008.
 
    <dd><cite><a
     href="http://www.whatwg.org/specs/web-forms/current-work/">Web Forms
     2.0</a></cite>, I. Hickson, editor. WHATWG, October 2006.
 
-   <dd><cite><a href="http://www.w3.org/html/wg/html5/">HTML 5</a></cite>, I.
+   <dd><cite><a
+    href="http://www.w3.org/html/wg/html5/">HTML&nbsp;5</a></cite>, I.
     Hickson, D. Hyatt, editors. W3C, 2008.
 
    <dd><cite><a href="http://dev.w3.org/html5/web-forms-2/">Web Forms
@@ -260,6 +262,6 @@
   <h2 class=no-num id=acknowledgments>Acknowledgments</h2>
 
   <p>The editors would like to thank Chris Wilson, Dion Almaer, James Graham,
-   Julian Reschke, Henri Sivonen, and Patrick D. F. Ion for their
-   contributions to this document. Also thanks to Dan Connolly for talking us
-   into writing it during the first HTML WG meeting (in Boston).
+   Julian Reschke, Henri Sivonen Patrick D. F. Ion, and Philip Taylor for
+   their contributions to this document. Also thanks to Dan Connolly for
+   talking us into writing it during the first HTML WG meeting (in Boston).

Index: Overview.src.html
===================================================================
RCS file: /sources/public/html5/offline-webapps/Overview.src.html,v
retrieving revision 1.9
retrieving revision 1.10
diff -u -d -r1.9 -r1.10
--- Overview.src.html	15 May 2008 17:03:58 -0000	1.9
+++ Overview.src.html	28 May 2008 19:32:01 -0000	1.10
@@ -47,11 +47,11 @@
 
   <h2 id="abstract" class="no-num no-toc">Abstract</h2>
 
-  <p>HTML5 contains several features that address the challenge of building
+  <p>HTML&nbsp;5 contains several features that address the challenge of building
   Web applications that work while offline. This document highlights these
   features (SQL, offline application caching APIs as well as
   <code>online</code>/<code>offline</code> events, status, and the
-  <code>localStorage</code> API) from HTML5 and provides brief tutorials on
+  <code>localStorage</code> API) from HTML&nbsp;5 and provides brief tutorials on
   how these features might be used to create Web applications that work
   offline. [<cite><span>HTML5</span></cite>]</p>
 
@@ -86,7 +86,7 @@
 
   <h2 id="sql">SQL</h2>
 
-  <p>The client-side SQL database in HTML5 enables structured data storage.
+  <p>The client-side SQL database in HTML&nbsp;5 enables structured data storage.
   This can be used to store e-mails locally for an e-mail application or for
   a cart in an online shopping site. The API to interact with this database
   is asynchronous which ensures that the user interface doesn't lock up.
@@ -107,7 +107,7 @@
   <code>executeSQL()</code> method. This method takes from one to four
   arguments: a SQL statement, arguments, a SQL statement callback, and a SQL
   statement error callback. The SQL statement callback gets passed the
-  transaction object and a SQL statment result object which gives access to
+  transaction object and a SQL statement result object which gives access to
   the rows, last inserted ID, et cetera.</p>
   
   <p>To complete the infrastructure for the notes application we'd add the
@@ -129,8 +129,8 @@
       for(var i = 0; i &lt; rs.rows.length; i++) {
         renderNote(rs.rows[i]);
       }
-    })
-  })
+    });
+  });
 }
 
 function insertNote(title, text) {
@@ -153,7 +153,9 @@
   <code>html</code> element.</p>
 
   <p>The attribute takes a URI to a manifest, which specifies which
-  files are to be cached. A typical file looks like this:</p>
+  files are to be cached. The manifest has a
+  <code>text/cache-manifest</code> MIME type. A typical file looks like
+  this:</p>
 
   <pre>CACHE MANIFEST
 index.html
@@ -182,7 +184,7 @@
 
   <pre>&lt;event-source src="server.cgi"></pre>
 
-  <p>(The <code>event-source</code> element is a new feature in HTML5
+  <p>(The <code>event-source</code> element is a new feature in HTML&nbsp;5
   that allows servers to continuously stream updates to a Web page.)</p>
 
   <p>The application cache mechanism also supports a way to
@@ -195,7 +197,7 @@
   
   <h2 id="related">Related APIs</h2>
   
-  <p>In addition to those APIs HTML5 also defines an <code>onLine</code>
+  <p>In addition to those APIs HTML&nbsp;5 also defines an <code>onLine</code>
   attribute on the <code>Navigator</code> object so you can determine
   whether you are currently online:</p>
 
@@ -205,7 +207,7 @@
   and <code>offline</code> events that are both dispatched on the
   <code>Window</code> object.
 
-  <p>For simple synchronous storage access HTML5 introduces the
+  <p>For simple synchronous storage access HTML&nbsp;5 introduces the
   <code>localStorage</code> attribute on the <code>Window</code> object:
   
   <pre>localStorage["status"] = "Idling.";</pre>
@@ -216,13 +218,13 @@
   <dl>
    <dt>[<dfn id="ref-html5">HTML5</dfn>] (work in progress)</dt>
 
-   <dd><cite><a href="http://www.whatwg.org/specs/web-apps/current-work/">HTML
-   5</a></cite>, I. Hickson, editor. WHATWG, 2008.</dd>
+   <dd><cite><a href="http://www.whatwg.org/specs/web-apps/current-work/">HTML&nbsp;5</a></cite>,
+   I. Hickson, editor. WHATWG, 2008.</dd>
 
    <dd><cite><a href="http://www.whatwg.org/specs/web-forms/current-work/">Web
    Forms 2.0</a></cite>, I. Hickson, editor. WHATWG, October 2006.</dd>  
 
-   <dd><cite><a href="http://www.w3.org/html/wg/html5/">HTML 5</a></cite>,
+   <dd><cite><a href="http://www.w3.org/html/wg/html5/">HTML&nbsp;5</a></cite>,
    I. Hickson, D. Hyatt, editors. W3C, 2008.</dd>
 
    <dd><cite><a href="http://dev.w3.org/html5/web-forms-2/">Web Forms
@@ -237,8 +239,9 @@
   Dion Almaer,
   James Graham,
   Julian Reschke,
-  Henri Sivonen, and
-  Patrick D. F. Ion
+  Henri Sivonen
+  Patrick D. F. Ion, and
+  Philip Taylor
 
   for their contributions to this document. Also thanks to Dan Connolly for
   talking us into writing it during the first HTML WG meeting (in
Received on Wednesday, 28 May 2008 19:32:45 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Thursday, 9 October 2008 20:32:56 GMT