diff --git a/index.html b/index.html index 876d41ad7..caeaa8b53 100644 --- a/index.html +++ b/index.html @@ -1542,13 +1542,12 @@

  • Set manifest["icons"] to the result of running processing ImageResource members given - manifest["icons"], manifest URL, and - "icons". + manifest["icons"] and manifest URL.
  • Set manifest["screenshots"] to the result of running processing ImageResource members given - manifest["screenshots"], manifest URL, - and "screenshots". + manifest["screenshots"] and manifest + URL.
  • Set manifest["related_applications"] to the result of running processing the related_applications @@ -2803,7 +2802,7 @@

    -
    +

    sizes member

    @@ -2861,24 +2860,6 @@

    The src member of an ImageResource is a URL from which a user agent can fetch the image's data.

    -

    - The steps for processing the src member of an - image are given by the following algorithm. The algorithm takes - a ImageResource icon, and a URL - manifest URL , which is the URL from which the - manifest was fetched. This algorithm will return a - URL or undefined. -

    -
      -
    1. Let value be image["src"]. -
    2. -
    3. If Type(value) it not String, return - undefined. -
    4. -
    5. Otherwise, parse value using manifest - URL as the base URL and return the result. -
    6. -

    @@ -2929,54 +2910,50 @@

    The steps for processing ImageResource members are - given by the following algorithm. The algorithm takes a manifest, a - URL manifest URL, which is the URL from which the - manifest was fetched, and a string that represents - the member name of the member which contains the array of - ImageResources. This algorithm returns an - Array<ImageResource> + given by the following algorithm. The algorithm takes a + Array<ImageResource> entries and a URL + manifest URL. This algorithm returns an + Array<ImageResource>.

    1. Let imageResources be a new Array object created as if by the expression [].
    2. - For each entry of manifest[member - name]: + For each entry of entries:
    3. -
    4. +
    5. If entry["src"] is not undefined:
        -
      1. If entry["src"] is not undefined: -
          -
        1. Let image be a new object created as if by the - expression ({}). -
        2. -
        3. Set image["src"] to the result of running - processing the src member of an image - given entry and manifest URL. -
        4. -
        5. Set image["type"] to the result of running - processing the type member of an image - given entry and manifest URL. -
        6. -
        7. Set image["sizes"] to the result of running - processing the sizes member of an image - given entry and manifest URL. -
        8. -
        9. Let purpose be the result of running - processing the purpose member of an image - given entry and manifest URL. -
        10. -
        11. If purpose is failure, continue. -
        12. -
        13. Set image["purpose"] to purpose. -
        14. -
        15. - Append image to - imageResources -
        16. -
        +
      2. Let image be a new object created as if by the + expression ({}). +
      3. +
      4. Set image["src"] to the result of parsing + entry["src"] using manifest URL as the base + URL. +
      5. +
      6. Set image["type"] to the result of running + processing the type member of an image given + entry and manifest URL. +
      7. +
      8. Set image["sizes"] to the result of running + processing the sizes member of an image given + entry and manifest URL. +
      9. +
      10. Let purpose be the result of running processing + the purpose member of an image given + entry and manifest URL. +
      11. +
      12. If purpose is failure, continue. +
      13. +
      14. Set image["purpose"] to purpose. +
      15. +
      16. Set image["platform"] to + entry["platform"]. +
      17. +
      18. + Append image to + imageResources