HTML Standard Tracker

Diff (omit for latest revision)
Filter

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

File a bug

SVNBugCommentTime (UTC)
2337[Gecko] [Webkit] [Google Gears] Make the online whitelist a prefix match feature, not an exact match feature.2008-10-15 23:44
Index: source
===================================================================
--- source	(revision 2336)
+++ source	(revision 2337)
@@ -985,7 +985,7 @@
 
 
 
-  <h3>Case-sensitivity</h3>
+  <h3>Case-sensitivity and string comparison</h3>
 
   <p>This specification defines several comparison operators for
   strings.</p>
@@ -1018,8 +1018,14 @@
   with the corresponding characters in the range U+0061 .. U+007A
   (i.e. LATIN SMALL LETTER A to LATIN SMALL LETTER Z).</p>
 
+  <p>A string <var title="">pattern</var> is a <dfn>prefix match</dfn>
+  for a string <var title="">s</var> when <var title="">pattern</var>
+  is not longer than <var title="">s</var> and truncating <var
+  title="">s</var> to <var title="">pattern</var>'s length leaves the
+  two strings as matches of each other.</p>
 
 
+
   <h3>Common microsyntaxes</h3>
 
   <p>There are various places in HTML that accept particular data
@@ -3487,8 +3493,6 @@
 
 
 
-
-
   <h4>Interfaces for URL manipulation</h4>
 
  <p>An interface that has a complement of <dfn>URL decomposition
@@ -39552,12 +39556,6 @@
    mechanism or equivalent, then <span>fetch</span> the resource
    normally and abort these steps.</p></li>
 
-   <li><p>If the resource's URL, ignoring its fragment identifier if
-   any, is listed in the <span>application cache</span>'s <span
-   title="concept-appcache-onlinewhitelist">online whitelist</span>,
-   then <span>fetch</span> the resource normally and abort these
-   steps.</p></li>
-
    <li><p>If the resource's URL is <span
    title="concept-appcache-implicit">an implicit entry</span>, <span
    title="concept-appcache-manifest">the manifest</span>, <span
@@ -39569,14 +39567,22 @@
    resource from the cache (instead of fetching it), and abort these
    steps.</p></li>
 
+   <li><p>If there is an entry in the <span>application cache</span>'s
+   <span title="concept-appcache-onlinewhitelist">online
+   whitelist</span> that has the <span>same origin</span> as the
+   resource's URL and that is a <span>prefix match</span> for the
+   resource's URL, then <span>fetch</span> the resource normally and
+   abort these steps.</p></li>
+
    <li>
 
     <p>If the resource's URL has the <span>same origin</span> as the
-    manifest's URL, and the start of the resource's URL's <span
-    title="url-path">&lt;path&gt;</span> component is exactly matched
-    by the &lt;path&gt; component of an <span
+    manifest's URL, and there is an <span
     title="concept-appcache-oppcache-ns">opportunistic caching
-    namespace</span> in the <span>application cache</span>, then:
+    namespace</span> in the <span>application cache</span> whose
+    &lt;path&gt; component is a <span>prefix match</span> for the
+    resource's URL's <span title="url-path">&lt;path&gt;</span>
+    component, then:
 
     <p><span>Fetch</span> the resource normally. If this results 4xx
     or 5xx status codes or equivalent, or if there were network errors

|