From 10f664f87a1a9df0b3c764512e9f76a209ae1817 Mon Sep 17 00:00:00 2001 From: Ian Hickson Date: Wed, 15 Oct 2008 23:44:11 +0000 Subject: [PATCH] [gwr] (2) Make the online whitelist a prefix match feature, not an exact match feature. git-svn-id: http://svn.whatwg.org/webapps@2337 340c8d12-0b0e-0410-8428-c7bf67bfef74 --- index | 29 +++++++++++++++++++---------- source | 32 +++++++++++++++++++------------- 2 files changed, 38 insertions(+), 23 deletions(-) diff --git a/index b/index index 5ec4af668c4..10ff21e5aa7 100644 --- a/index +++ b/index @@ -210,7 +210,7 @@
  • 2.2.2 Features defined in other specifications
  • 2.2.3 Common conformance requirements for APIs exposed to JavaScript
  • -
  • 2.3 Case-sensitivity
  • +
  • 2.3 Case-sensitivity and string comparison
  • 2.4 Common microsyntaxes
    1. 2.4.1 Common parser idioms
    2. @@ -1892,7 +1892,7 @@ -

      2.3 Case-sensitivity

      +

      2.3 Case-sensitivity and string comparison

      This specification defines several comparison operators for strings.

      @@ -1924,6 +1924,11 @@ with the corresponding characters in the range U+0061 .. U+007A (i.e. LATIN SMALL LETTER A to LATIN SMALL LETTER Z).

      +

      A string pattern is a prefix match + for a string s when pattern + is not longer than s and truncating s to pattern's length leaves the + two strings as matches of each other.

      +

      2.4 Common microsyntaxes

      @@ -34817,23 +34822,27 @@ style/default.css mechanism or equivalent, then fetch the resource normally and abort these steps. -
    3. If the resource's URL, ignoring its fragment identifier if - any, is listed in the application cache's online whitelist, - then fetch the resource normally and abort these - steps.

    4. -
    5. If the resource's URL is an implicit entry, the manifest, an explicit entry, a fallback entry, an opportunistically cached entry, or a dynamic entry in the application cache, then get the resource from the cache (instead of fetching it), and abort these steps.

    6. +
    7. If there is an entry in the application cache's + online + whitelist that has the same origin as the + resource's URL and that is a prefix match for the + resource's URL, then fetch the resource normally and + abort these steps.

    8. +
    9. If the resource's URL has the same origin as the - manifest's URL, and the start of the resource's URL's <path> component is exactly matched - by the <path> component of an opportunistic caching - namespace in the application cache, then: + manifest's URL, and there is an opportunistic caching + namespace in the application cache whose + <path> component is a prefix match for the + resource's URL's <path> + component, then:

      Fetch the resource normally. If this results 4xx or 5xx status codes or equivalent, or if there were network errors diff --git a/source b/source index 9c36d5a33f6..3f2f392fed9 100644 --- a/source +++ b/source @@ -985,7 +985,7 @@ -

      Case-sensitivity

      +

      Case-sensitivity and string comparison

      This specification defines several comparison operators for strings.

      @@ -1018,6 +1018,12 @@ with the corresponding characters in the range U+0061 .. U+007A (i.e. LATIN SMALL LETTER A to LATIN SMALL LETTER Z).

      +

      A string pattern is a prefix match + for a string s when pattern + is not longer than s and truncating s to pattern's length leaves the + two strings as matches of each other.

      +

      Common microsyntaxes

      @@ -3487,8 +3493,6 @@ - -

      Interfaces for URL manipulation

      An interface that has a complement of URL decomposition @@ -39552,12 +39556,6 @@ style/default.css mechanism or equivalent, then fetch the resource normally and abort these steps.

    10. -
    11. If the resource's URL, ignoring its fragment identifier if - any, is listed in the application cache's online whitelist, - then fetch the resource normally and abort these - steps.

    12. -
    13. If the resource's URL is an implicit entry, the manifest, resource from the cache (instead of fetching it), and abort these steps.

    14. +
    15. If there is an entry in the application cache's + online + whitelist that has the same origin as the + resource's URL and that is a prefix match for the + resource's URL, then fetch the resource normally and + abort these steps.

    16. +
    17. If the resource's URL has the same origin as the - manifest's URL, and the start of the resource's URL's <path> component is exactly matched - by the <path> component of an opportunistic caching - namespace in the application cache, then: + namespace in the application cache whose + <path> component is a prefix match for the + resource's URL's <path> + component, then:

      Fetch the resource normally. If this results 4xx or 5xx status codes or equivalent, or if there were network errors