Skip to content

Commit

Permalink
Associate file extensions and MIME types
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
ericwilligers committed May 7, 2019
1 parent 4078bc4 commit a465fd8
Showing 1 changed file with 37 additions and 0 deletions.
37 changes: 37 additions & 0 deletions level-2/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -442,6 +442,43 @@ <h3>
</li>
</ul>
</li>
<li>If the implementation does not support <a>filtering on MIME
types</a>:
<ol>
<li>For each <var>criterion</var> in
<var>bucket</var>["<a data-link-for=
"ShareTargetFiles">accept</a>"]:
<ol>
<li>If <var>criterion</var> is
<var>type</var><code>/</code><var>subtype</var> or <var>
type</var><code>/*</code>, and the implementation
associates <var>criterion</var> with one or more file
extensions, append those file extensions to
<var>bucket</var>["<a data-link-for=
"ShareTargetFiles">accept</a>"].
</li>
</ol>
</li>
</ol>
</li>
<li>If the implementation does not support <a>filtering on file
extensions</a>:
<ol>
<li>For each <var>criterion</var> in
<var>bucket</var>["<a data-link-for=
"ShareTargetFiles">accept</a>"]:
<ol>
<li>If <var>criterion</var> is a string whose first
character is a U+002E FULL STOP character (.), and the
implementation associates the file extension
<var>criterion</var> with a MIME type, append that MIME
type to <var>bucket</var>["<a data-link-for=
"ShareTargetFiles">accept</a>"].
</li>
</ol>
</li>
</ol>
</li>
</ol>
</li>
<li>Let <var>action</var> be the result of <a data-cite=
Expand Down

0 comments on commit a465fd8

Please sign in to comment.