Skip to content

Commit

Permalink
Let [MIMESNIFF] define MIME-related concepts
Browse files Browse the repository at this point in the history
  • Loading branch information
domenic authored and annevk committed Nov 15, 2016
1 parent 6531e09 commit 0d08aea
Showing 1 changed file with 10 additions and 24 deletions.
34 changes: 10 additions & 24 deletions source
Original file line number Diff line number Diff line change
Expand Up @@ -1932,26 +1932,6 @@ a.setAttribute('href', 'https://example.com/'); // change the content attribute
<i>representation</i> is referred to in this specification as a <dfn data-x="">resource</dfn>.
<ref spec=HTTP></p>

<p>The term <dfn>MIME type</dfn> is used to refer to what is sometimes called an <i>Internet media
type</i> in protocol literature. The term <i>media type</i> in this specification is used to refer
to the type of media intended for presentation, as used by the CSS specifications. <ref
spec=RFC2046> <ref spec=MQ></p>

<p>A string is a <dfn data-export="">valid MIME type</dfn> if it matches the <code
data-x="concept-http-media-type" undefined>media-type</code> rule defined in <a
href="https://tools.ietf.org/html/rfc7231#section-3.1.1.1">section 3.1.1.1 "Media Type" of RFC
7231</a>. In particular, a <span>valid MIME type</span> may include MIME type parameters. <ref
spec=HTTP></p>

<p>A string is a <dfn>valid MIME type with no parameters</dfn> if it matches the <code
data-x="concept-http-media-type" undefined>media-type</code> rule defined in <a
href="https://tools.ietf.org/html/rfc7231#section-3.1.1.1">section 3.1.1.1 "Media Type" of RFC
7231</a>, but does not contain any U+003B SEMICOLON characters (;). In other words, if it consists
only of a type and subtype, with no MIME Type parameters. <ref spec=HTTP></p>

<p>The term <dfn>HTML MIME type</dfn> is used to refer to the <span>MIME type</span>
<code>text/html</code>.</p>

<p>A resource's <dfn>critical subresources</dfn> are those that the resource needs to have
available to be correctly processed. Which resources are considered critical or not is defined by
the specification that defines the resource's format.</p>
Expand All @@ -1978,10 +1958,6 @@ a.setAttribute('href', 'https://example.com/'); // change the content attribute
data-x="xml-Name">Name</code> production defined in XML and they contain no U+003A COLON
characters (:). <ref spec=XML></p>

<p>The term <dfn>XML MIME type</dfn> is used to refer to the <span data-x="MIME type">MIME
types</span> <code>text/xml</code>, <code>application/xml</code>, and any <span>MIME type</span>
whose subtype ends with the four characters "<code data-x="">+xml</code>". <ref spec=RFC7303></p>


<h4>DOM trees</h4>

Expand Down Expand Up @@ -2656,6 +2632,16 @@ a.setAttribute('href', 'https://example.com/'); // change the content attribute
<li>`<dfn data-x="http-link" data-x-href="https://tools.ietf.org/html/rfc5988#section-5"><code>Link</code></dfn>` header</li>
</ul>

<p>The following terms are defined in the WHATWG MIME Sniffing standard: <ref spec=MIMESNIFF></p>

<ul class="brief">
<li><dfn data-x-href="https://mimesniff.spec.whatwg.org/#mime-type">MIME type</dfn></li>
<li><dfn data-x-href="https://mimesniff.spec.whatwg.org/#valid-mime-type">valid MIME type</dfn></li>
<li><dfn data-x-href="https://mimesniff.spec.whatwg.org/#valid-mime-type-with-no-parameters">valid MIME type with no parameters</dfn></li>
<li><dfn data-x-href="https://mimesniff.spec.whatwg.org/#xml-mime-type">XML MIME type</dfn></li>
<li><dfn data-x-href="https://mimesniff.spec.whatwg.org/#html-mime-type">HTML MIME type</dfn></li>
</ul>

</dd>


Expand Down

0 comments on commit 0d08aea

Please sign in to comment.