Skip to content

Commit

Permalink
Export the image pattern and the media pattern algorithm
Browse files Browse the repository at this point in the history
I'd like to reference them in whatwg/fetch#1755,
hence this patch to export those two algorithms.
  • Loading branch information
sefeng211 committed Jun 11, 2024
1 parent 60ebda1 commit ade7608
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions mimesniff.bs
Original file line number Diff line number Diff line change
Expand Up @@ -791,7 +791,7 @@ and a <a for=/>set</a> of <a>bytes</a> to be ignored <var>ignored</var>, and ret

<p>To determine which <a>image MIME type</a> <a>byte pattern</a> a <a>byte sequence</a>
<var>input</var> matches, if any, use the following
<dfn>image type pattern matching algorithm</dfn>:
<dfn export>image type pattern matching algorithm</dfn>:

<ol>
<li><p>Execute the following steps for each row <var>row</var> in the following table:
Expand Down Expand Up @@ -985,7 +985,7 @@ and a <a for=/>set</a> of <a>bytes</a> to be ignored <var>ignored</var>, and ret
<h3 id=matching-an-audio-or-video-type-pattern>Matching an audio or video type pattern</h3>

<p>To determine which <a>audio or video MIME type</a> <a>byte pattern</a> a <a>byte sequence</a>
<var>input</var> matches, if any, use the following <dfn>audio or video type pattern matching
<var>input</var> matches, if any, use the following <dfn export>audio or video type pattern matching
algorithm</dfn>:

<ol>
Expand Down

0 comments on commit ade7608

Please sign in to comment.