From d103ad33ba90b9569131125909400422e257ea49 Mon Sep 17 00:00:00 2001 From: Eric Willigers Date: Tue, 7 May 2019 14:22:41 +1000 Subject: [PATCH] Associate file extensions and MIME types An implementation may associate a file extension with a MIME type. In this case, it is sufficient for a manifest to only contain the file extension, even if the implementation only supports filtering on MIME types. Similarly, an implementation may associate a MIME type with one or more file extensions. In this case, it is sufficient for a manifest to only contain a MIME type (optionally with wildcard subtype), even if the implementation only supports filtering of file extensions. --- level-2/index.html | 37 +++++++++++++++++++++++++++++++++++++ 1 file changed, 37 insertions(+) diff --git a/level-2/index.html b/level-2/index.html index b4d5300..6f3b015 100644 --- a/level-2/index.html +++ b/level-2/index.html @@ -450,6 +450,43 @@

+
  • If the implementation does not support filtering on MIME + types: +
      +
    1. For each criterion in + bucket["accept"]: +
        +
      1. If criterion is + type/subtype or + type/*, and the implementation + associates criterion with one or more file + extensions, append those file extensions to + bucket["accept"]. +
      2. +
      +
    2. +
    +
  • +
  • If the implementation does not support filtering on file + extensions: +
      +
    1. For each criterion in + bucket["accept"]: +
        +
      1. If criterion is a string whose first + character is a U+002E FULL STOP character (.), and the + implementation associates the file extension + criterion with a MIME type, append that MIME + type to bucket["accept"]. +
      2. +
      +
    2. +
    +
  • If bucket["accept"] is empty, issue a developer