HTML5 Tracker

Diff (omit for latest revision)
Filter

Short URL: http://html5.org/r/3606

SVNBugCommentTime (UTC)
3606[Gecko] [Webkit] appcache: Always allow cross-scheme networking to work unaffected. Clarify rules about syntax of manifests regarding schemes and the like.2009-08-14 00:29
Index: source
===================================================================
--- source	(revision 3605)
+++ source	(revision 3606)
@@ -56652,10 +56652,10 @@
   <h5>Writing cache manifests</h5>
 
   <p>Manifests must be served using the
-  <code>text/cache-manifest</code> <span>MIME type</span>. All resources served
-  using the <code>text/cache-manifest</code> <span>MIME type</span> must follow the
-  syntax of application cache manifests, as described in this
-  section.</p>
+  <code>text/cache-manifest</code> <span>MIME type</span>. All
+  resources served using the <code>text/cache-manifest</code>
+  <span>MIME type</span> must follow the syntax of application cache
+  manifests, as described in this section.</p>
 
   <p>An application cache manifest is a text file, whose text is
   encoded using UTF-8. Data in application cache manifests is
@@ -56734,10 +56734,16 @@
     <p>The format that data lines must take depends on the current
     section.</p>
 
-    <p>When the current section is the explicit section or the online
-    whitelist section, data lines must consist of zero or more U+0020
-    SPACE and U+0009 CHARACTER TABULATION (tab) characters, either a
-    single U+002A ASTERISK character (*) <!--
+    <p>When the current section is the explicit section, data lines
+    must consist of zero or more U+0020 SPACE and U+0009 CHARACTER
+    TABULATION (tab) characters, a <span>valid URL</span> identifying
+    a resource other than the manifest itself, and then zero or more
+    U+0020 SPACE and U+0009 CHARACTER TABULATION (tab) characters.</p>
+
+    <p>When the current section is the online whitelist section, data
+    lines must consist of zero or more U+0020 SPACE and U+0009
+    CHARACTER TABULATION (tab) characters, either a single U+002A
+    ASTERISK character (*) <!--
     concept-appcache-onlinewhitelist-wildcard --> or a <span>valid
     URL</span> identifying a resource other than the manifest itself,
     and then zero or more U+0020 SPACE and U+0009 CHARACTER TABULATION
@@ -56786,7 +56792,10 @@
   concept-appcache-onlinewhitelist-wildcard --></p>
 
   <p>Relative URLs must be given relative to the manifest's own
-  URL.</p>
+  URL. All URLs in the manifest must have the same <span
+  title="url-scheme">&lt;scheme&gt;</span> as the manifest itself
+  (either explicitly or implicitly, through the use of relative
+  URLs).</p>
 
   <p>URLs in manifests must not have fragment identifiers (i.e. the
   U+0023 NUMBER SIGN character isn't allowed in URLs in
@@ -57973,8 +57982,10 @@
 
    <li><p>If the resource is not to be fetched using the HTTP GET
    mechanism <span title="concept-http-equivalent-get">or
-   equivalent</span>, or if it has a <span title="javascript
-   protocol"><code title="">javascript:</code> URL</span>, then
+   equivalent</span>, or if its <span>URL</span> has a different <span
+   title="url-scheme">&lt;scheme&gt;</span> component than the
+   <span>application cache</span>'s <span
+   title="concept-appcache-manifest">manifest</span>, then
    <span>fetch</span> the resource normally and abort these
    steps.</p></li>
 

|