Skip to content

Commit d103ad3

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 dd4e83f commit d103ad3

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
@@ -450,6 +450,43 @@ <h3>
450450
</li>
451451
</ul>
452452
</li>
453+
<li>If the implementation does not support <a>filtering on MIME
454+
types</a>:
455+
<ol>
456+
<li>For each <var>criterion</var> in
457+
<var>bucket</var>["<a data-link-for=
458+
"ShareTargetFiles">accept</a>"]:
459+
<ol>
460+
<li>If <var>criterion</var> is
461+
<var>type</var><code>/</code><var>subtype</var> or <var>
462+
type</var><code>/*</code>, and the implementation
463+
associates <var>criterion</var> with one or more file
464+
extensions, append those file extensions to
465+
<var>bucket</var>["<a data-link-for=
466+
"ShareTargetFiles">accept</a>"].
467+
</li>
468+
</ol>
469+
</li>
470+
</ol>
471+
</li>
472+
<li>If the implementation does not support <a>filtering on file
473+
extensions</a>:
474+
<ol>
475+
<li>For each <var>criterion</var> in
476+
<var>bucket</var>["<a data-link-for=
477+
"ShareTargetFiles">accept</a>"]:
478+
<ol>
479+
<li>If <var>criterion</var> is a string whose first
480+
character is a U+002E FULL STOP character (.), and the
481+
implementation associates the file extension
482+
<var>criterion</var> with a MIME type, append that MIME
483+
type to <var>bucket</var>["<a data-link-for=
484+
"ShareTargetFiles">accept</a>"].
485+
</li>
486+
</ol>
487+
</li>
488+
</ol>
489+
</li>
453490
<li>If <var>bucket</var>["<a data-link-for=
454491
"ShareTargetFiles">accept</a>"] is empty, <a data-cite=
455492
"!appmanifest#dfn-issue-a-developer-warning">issue a developer

0 commit comments

Comments
 (0)