HTML Standard Tracker

Filter

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
@@ -978,21 +978,21 @@
   raised.</p>
 
   <!-- XXX DOMB -->
   <p>Unless otherwise specified, if a method is passed more arguments than
   is defined for that method in its IDL definition, the excess
   arguments must be ignored.</p>
   
 
 
 
-  <h3>Case-sensitivity</h3>
+  <h3>Case-sensitivity and string comparison</h3>
 
   <p>This specification defines several comparison operators for
   strings.</p>
 
   <p>Comparing two strings in a <dfn>case-sensitive</dfn> manner means
   comparing them exactly, codepoint for codepoint.</p>
 
   <p>Comparing two strings in a <dfn>ASCII case-insensitive</dfn>
   manner means comparing them exactly, codepoint for codepoint, except
   that the characters in the range U+0041 .. U+005A (i.e. LATIN
@@ -1011,20 +1011,26 @@
   .. U+007A (i.e. LATIN SMALL LETTER A to LATIN SMALL LETTER Z) with
   the corresponding characters in the range U+0041 .. U+005A
   (i.e. LATIN CAPITAL LETTER A to LATIN CAPITAL LETTER Z).</p>
 
   <p><dfn title="converted to lowercase">Converting a string to
   lowercase</dfn> means replacing all characters in the range U+0041
   .. U+005A (i.e. LATIN CAPITAL LETTER A to LATIN CAPITAL LETTER Z)
   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
   types, such as dates or numbers. This section describes what the
   conformance criteria for content in those formats is, and how to
   parse them.</p>
 
   <!-- XXX need to define how to handle U+000A LINE FEED and U+000D
@@ -3480,22 +3486,20 @@
     accesses of the <code title="dom-img-src">src</code> DOM attribute
     from script will return a new <span>absolute URL</span> that might
     no longer correspond to the image being shown.</p>
 
    </dd>
 
   </dl>
 
 
 
-
-
   <h4>Interfaces for URL manipulation</h4>
 
  <p>An interface that has a complement of <dfn>URL decomposition
   attributes</dfn> will have seven attributes with the following
   definitions:</p>
 
 <pre class="idl">
            attribute DOMString <span title="dom-uda-protocol">protocol</span>;
            attribute DOMString <span title="dom-uda-host">host</span>;
            attribute DOMString <span title="dom-uda-hostname">hostname</span>;
@@ -39545,45 +39549,47 @@ style/default.css</pre>
   cache</span>, any and all resource loads must go through the
   following steps instead of immediately invoking the mechanisms
   appropriate to that resource's scheme:</p>
 
   <ol>
 
    <li><p>If the resource is not to be fetched using the HTTP GET
    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
    title="concept-appcache-explicit">an explicit entry</span>, <span
    title="concept-appcache-fallback">a fallback entry</span>, <span
    title="concept-appcache-oppcache">an opportunistically cached
    entry</span>, or a <span title="concept-appcache-dynamic">dynamic
    entry</span> in the <span>application cache</span>, then get the
    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
     (but not if the user canceled the download), then instead get,
     from the cache, the resource of the <span
     title="concept-appcache-fallback">fallback entry</span>
     corresponding to the namespace with the longest matching
     &lt;path&gt; component. Abort these steps.</p>
 
    </li>

|