[html5] r2712 - [gw] (2) Allow Emacs-style mode lines on the first line of a cache manifest file [...]

whatwg at whatwg.org whatwg at whatwg.org
Tue Jan 27 15:22:44 PST 2009


Author: ianh
Date: 2009-01-27 15:22:43 -0800 (Tue, 27 Jan 2009)
New Revision: 2712

Modified:
   index
   source
Log:
[gw] (2) Allow Emacs-style mode lines on the first line of a cache manifest file. (credit: ap)

Modified: index
===================================================================
--- index	2009-01-27 09:36:27 UTC (rev 2711)
+++ index	2009-01-27 23:22:43 UTC (rev 2712)
@@ -36802,11 +36802,11 @@
 
   <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>
+  "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>
 
   <p>Subsequent lines, if any, must all be one of the following:</p>
 
@@ -36948,18 +36948,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 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>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>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
@@ -36967,6 +36970,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)

Modified: source
===================================================================
--- source	2009-01-27 09:36:27 UTC (rev 2711)
+++ source	2009-01-27 23:22:43 UTC (rev 2712)
@@ -41847,11 +41847,11 @@
 
   <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>
+  "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>
 
   <p>Subsequent lines, if any, must all be one of the following:</p>
 
@@ -42009,20 +42009,21 @@
    abort this algorithm with a failure while checking for the magic
    signature.</p></li>
 
-   <li><p><span>Collect a sequence of characters</span> that are
-   U+0020 SPACE or U+0009 CHARACTER TABULATION (tab)
-   characters.</p></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.</p></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.</p></li>
-
    <li><p>This is a cache manifest. The algorithm cannot fail beyond
    this point (though bogus lines can get ignored).</p></li>
 
+   <li><p><span>Collect a sequence of characters</span> 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.)</p></li>
+
    <li><p>Let <var title="">mode</var> be "explicit".</p></li>
 
    <li><p><em>Start of line</em>: If <var title="">position</var> is
@@ -42030,6 +42031,7 @@
    step. Otherwise, <span>collect a sequence of characters</span> that
    are U+000A LINE FEED (LF), U+000D CARRIAGE RETURN (CR), U+0020
    SPACE, or U+0009 CHARACTER TABULATION (tab) characters.</p></li>
+   <!-- strips leading spaces, ignores space-only lines, ignores blank lines -->
 
    <li><p>Now, <span>collect a sequence of characters</span> that are
    <em>not</em> U+000A LINE FEED (LF) or U+000D CARRIAGE RETURN (CR)




More information about the Commit-Watchers mailing list