W3C home > Mailing lists > Public > public-html-commits@w3.org > January 2009

html5/spec Overview.html,1.1881,1.1882

From: Ian Hickson via cvs-syncmail <cvsmail@w3.org>
Date: Tue, 27 Jan 2009 23:22:53 +0000
To: public-html-commits@w3.org
Message-Id: <E1LRxGg-0005Kd-0k@lionel-hutz.w3.org>

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

Modified Files:
	Overview.html 
Log Message:
Allow Emacs-style mode lines on the first line of a cache manifest file. (credit: ap) (whatwg r2712)

Index: Overview.html
===================================================================
RCS file: /sources/public/html5/spec/Overview.html,v
retrieving revision 1.1881
retrieving revision 1.1882
diff -u -d -r1.1881 -r1.1882
--- Overview.html	27 Jan 2009 09:36:32 -0000	1.1881
+++ Overview.html	27 Jan 2009 23:22:51 -0000	1.1882
@@ -29900,11 +29900,11 @@
   characters, U+000D CARRIAGE RETURN (CR) characters, or U+000D
   CARRIAGE RETURN (CR) U+000A LINE FEED (LF) pairs.<p class=note>This is a willful double violation of RFC2046. <a href=#references>[RFC2046]</a><p>The first line of an application cache manifest must consist of
   the string "CACHE", a single U+0020 SPACE character, the string
-  "MANIFEST", and zero or more U+0020 SPACE and U+0009 CHARACTER
-  TABULATION (tab) characters.  The first line may optionally be
-  preceded by a U+FEFF BYTE ORDER MARK (BOM) character. If any other
-  text is found on the first line, the user agent will ignore the
-  entire file.<p>Subsequent lines, if any, must all be one of the following:<dl><dt>A blank line
+  "MANIFEST", and either a U+0020 SPACE character, a U+0009 CHARACTER
+  TABULATION (tab) character, a U+000A LINE FEED (LF) character, or a
+  U+000D CARRIAGE RETURN (CR) character. The first line may optionally
+  be preceded by a U+FEFF BYTE ORDER MARK (BOM) character. If any
+  other text is found on the first line, it is ignored.<p>Subsequent lines, if any, must all be one of the following:<dl><dt>A blank line
    <dd>
     <p>Blank lines must consist of zero or more U+0020 SPACE and
     U+0009 CHARACTER TABULATION (tab) characters only.</p>
@@ -30023,18 +30023,21 @@
    abort this algorithm with a failure while checking for the magic
    signature.</li>
 
-   <li><p><a href=#collect-a-sequence-of-characters>Collect a sequence of characters</a> that are
-   U+0020 SPACE or U+0009 CHARACTER TABULATION (tab)
-   characters.</li>
-
-   <li><p>If <var title="">position</var> is not past the end of <var title="">input</var> and the character at <var title="">position</var> is neither a U+000A LINE FEED (LF)
-   characters nor a U+000D CARRIAGE RETURN (CR) character, then this
-   isn't a cache manifest; abort this algorithm with a failure while
-   checking for the magic signature.</li>
+   <li><p>If the character at <var title="">position</var> is neither
+   a U+0020 SPACE character, a U+0009 CHARACTER TABULATION (tab)
+   character, U+000A LINE FEED (LF) character, nor a U+000D CARRIAGE
+   RETURN (CR) character, then this isn't a cache manifest; abort this
+   algorithm with a failure while checking for the magic
+   signature.</li>
 
    <li><p>This is a cache manifest. The algorithm cannot fail beyond
    this point (though bogus lines can get ignored).</li>
 
+   <li><p><a href=#collect-a-sequence-of-characters>Collect a sequence of characters</a> that are
+   <em>not</em> U+000A LINE FEED (LF) or U+000D CARRIAGE RETURN (CR)
+   characters, and ignore those characters. (Extra text on the first
+   line, after the signature, is ignored.)</li>
+
    <li><p>Let <var title="">mode</var> be "explicit".</li>
 
    <li><p><em>Start of line</em>: If <var title="">position</var> is
@@ -30042,6 +30045,7 @@
    step. Otherwise, <a href=#collect-a-sequence-of-characters>collect a sequence of characters</a> that
    are U+000A LINE FEED (LF), U+000D CARRIAGE RETURN (CR), U+0020
    SPACE, or U+0009 CHARACTER TABULATION (tab) characters.</li>
+   <!-- strips leading spaces, ignores space-only lines, ignores blank lines -->
 
    <li><p>Now, <a href=#collect-a-sequence-of-characters>collect a sequence of characters</a> that are
    <em>not</em> U+000A LINE FEED (LF) or U+000D CARRIAGE RETURN (CR)
Received on Tuesday, 27 January 2009 23:23:06 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Tuesday, 27 January 2009 23:23:08 GMT