- From: poot <cvsmail@w3.org>
- Date: Wed, 28 Jan 2009 08:25:47 +0900 (JST)
- To: public-html-diffs@w3.org
Allow Emacs-style mode lines on the first line of a cache manifest file. (credit: ap) (whatwg r2712) 5.7.3.3 Parsing cache manifests http://people.w3.org/mike/diffs/html5/spec/Overview.1.1882.html#parsing-cache-manifests 5.7.3.2 Writing cache manifests http://people.w3.org/mike/diffs/html5/spec/Overview.1.1882.html#writing-cache-manifests http://people.w3.org/mike/diffs/html5/spec/Overview.diff.html http://dev.w3.org/cvsweb/html5/spec/Overview.html?r1=1.1881&r2=1.1882&f=h http://html5.org/tools/web-apps-tracker?from=2711&to=2712 =================================================================== 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:26:28 UTC