Skip to content

Commit a465fd8

Browse files
committed
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.
1 parent 4078bc4 commit a465fd8

File tree

1 file changed

+37
-0
lines changed

1 file changed

+37
-0
lines changed

level-2/index.html

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -442,6 +442,43 @@ <h3>
442442
</li>
443443
</ul>
444444
</li>
445+
<li>If the implementation does not support <a>filtering on MIME
446+
types</a>:
447+
<ol>
448+
<li>For each <var>criterion</var> in
449+
<var>bucket</var>["<a data-link-for=
450+
"ShareTargetFiles">accept</a>"]:
451+
<ol>
452+
<li>If <var>criterion</var> is
453+
<var>type</var><code>/</code><var>subtype</var> or <var>
454+
type</var><code>/*</code>, and the implementation
455+
associates <var>criterion</var> with one or more file
456+
extensions, append those file extensions to
457+
<var>bucket</var>["<a data-link-for=
458+
"ShareTargetFiles">accept</a>"].
459+
</li>
460+
</ol>
461+
</li>
462+
</ol>
463+
</li>
464+
<li>If the implementation does not support <a>filtering on file
465+
extensions</a>:
466+
<ol>
467+
<li>For each <var>criterion</var> in
468+
<var>bucket</var>["<a data-link-for=
469+
"ShareTargetFiles">accept</a>"]:
470+
<ol>
471+
<li>If <var>criterion</var> is a string whose first
472+
character is a U+002E FULL STOP character (.), and the
473+
implementation associates the file extension
474+
<var>criterion</var> with a MIME type, append that MIME
475+
type to <var>bucket</var>["<a data-link-for=
476+
"ShareTargetFiles">accept</a>"].
477+
</li>
478+
</ol>
479+
</li>
480+
</ol>
481+
</li>
445482
</ol>
446483
</li>
447484
<li>Let <var>action</var> be the result of <a data-cite=

0 commit comments

Comments
 (0)