Skip to content

Commit

Permalink
[e] (0) Correct terminology regarding MIME types.
Browse files Browse the repository at this point in the history
Fixing http://www.w3.org/Bugs/Public/show_bug.cgi?id=8461

git-svn-id: http://svn.whatwg.org/webapps@4554 340c8d12-0b0e-0410-8428-c7bf67bfef74
  • Loading branch information
Hixie committed Jan 10, 2010
1 parent 985e2cd commit 58fff30
Show file tree
Hide file tree
Showing 3 changed files with 155 additions and 124 deletions.
92 changes: 52 additions & 40 deletions complete.html
Expand Up @@ -110,7 +110,7 @@

<header class=head id=head><p><a class=logo href=http://www.whatwg.org/ rel=home><img alt=WHATWG src=/images/logo></a></p>
<hgroup><h1>Web Applications 1.0</h1>
<h2 class="no-num no-toc">Draft Standard &mdash; 9 January 2010</h2>
<h2 class="no-num no-toc">Draft Standard &mdash; 10 January 2010</h2>
</hgroup><p>You can take part in this work. <a href=http://www.whatwg.org/mailing-list>Join the working group's discussion list.</a></p>
<p><strong>Web designers!</strong> We have a <a href=http://blog.whatwg.org/faq/>FAQ</a>, a <a href=http://forums.whatwg.org/>forum</a>, and a <a href=http://www.whatwg.org/mailing-list#help>help mailing list</a> for you!</p>
<!--<p class="impl"><strong>Implementors!</strong> We have a <a href="http://www.whatwg.org/mailing-list#implementors">mailing list</a> for you too!</p>-->
Expand Down Expand Up @@ -1897,8 +1897,15 @@ <h4 id=resources><span class=secno>2.1.1 </span>Resources</h4>
to refer to the type of media intended for presentation, as used by
the CSS specifications. <a href=#refsRFC2046>[RFC2046]</a> <a href=#refsMQ>[MQ]</a></p>

<p>A string is a <dfn id=valid-mime-type>valid MIME type</dfn> if it matches the <code title="">media-type</code> rule defined in section 3.7 "Media
Types" of RFC 2616. <a href=#refsHTTP>[HTTP]</a></p>
<p>A string is a <dfn id=valid-mime-type>valid MIME type</dfn> if it matches the <code title="">media-type</code> rule defined in section 3.7 "Media Types"
of RFC 2616. In particular, a <a href=#valid-mime-type>valid MIME type</a> may
include MIME type parameters. <a href=#refsHTTP>[HTTP]</a></p>

<p>A string is a <dfn id=valid-mime-type-with-no-parameters>valid MIME type with no parameters</dfn> if it
matches the <code title="">media-type</code> rule defined in section
3.7 "Media Types" of RFC 2616, 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. <a href=#refsHTTP>[HTTP]</a></p>


<h4 id=xml><span class=secno>2.1.2 </span>XML</h4>
Expand Down Expand Up @@ -10864,8 +10871,8 @@ <h4 id=the-link-element><span class=secno>4.2.4 </span>The <dfn><code>link</code

<p>The <dfn id=attr-link-type title=attr-link-type><code>type</code></dfn> attribute
gives the <a href=#mime-type>MIME type</a> of the linked resource. It is
purely advisory. The value must be a <a href=#valid-mime-type>valid MIME type</a>,
optionally with parameters.</p>
purely advisory. The value must be a <a href=#valid-mime-type>valid MIME
type</a>.</p>

<p>For <a href=#external-resource-link title="external resource link">external resource
links</a>, the <code title=attr-link-type><a href=#attr-link-type>type</a></code> attribute
Expand Down Expand Up @@ -11884,10 +11891,9 @@ <h4 id=the-style-element><span class=secno>4.2.6 </span>The <dfn><code>style</co
model</a>. The element does not <a href=#represents title=represents>represent</a> content for the user.</p>

<p>If the <dfn id=attr-style-type title=attr-style-type><code>type</code></dfn>
attribute is given, it must contain a <a href=#valid-mime-type>valid MIME type</a>,
optionally with parameters, that designates a styling language. If
the attribute is absent, the type defaults to
<code>text/css</code>. <a href=#refsRFC2318>[RFC2318]</a></p>
attribute is given, it must contain a <a href=#valid-mime-type>valid MIME type</a>
that designates a styling language. If the attribute is absent, the
type defaults to <code>text/css</code>. <a href=#refsRFC2318>[RFC2318]</a></p>

<div class=impl>

Expand Down Expand Up @@ -12264,8 +12270,9 @@ <h4 id=script><span class=secno>4.3.1 </span>The <dfn><code>script</code></dfn>
<p>The <dfn id=attr-script-type title=attr-script-type><code>type</code></dfn>
attribute gives the language of the script or format of the data. If
the attribute is present, its value must be a <a href=#valid-mime-type>valid MIME
type</a>, optionally with parameters. The <code title="">charset</code> parameter must not be specified. (The
default, which is used if the attribute is absent, is "<code title="">text/javascript</code>".)</p>
type</a>. The <code title="">charset</code> parameter must not be
specified. (The default, which is used if the attribute is absent,
is "<code title="">text/javascript</code>".)</p>

<p>The <dfn id=attr-script-src title=attr-script-src><code>src</code></dfn>
attribute, if specified, gives the address of the external script
Expand Down Expand Up @@ -20015,12 +20022,14 @@ <h4 id=the-embed-element><span class=secno>4.8.4 </span>The <dfn><code>embed</co
present, must contain a <a href=#valid-url>valid URL</a>.</p>

<p>The <dfn id=attr-embed-type title=attr-embed-type><code>type</code></dfn>
attribute, if present, gives the <a href=#mime-type>MIME type</a> of the plugin to
instantiate. The value must be a <a href=#valid-mime-type>valid MIME type</a>,
optionally with parameters. If both the <code title=attr-embed-type><a href=#attr-embed-type>type</a></code> attribute and the <code title=attr-embed-src><a href=#attr-embed-src>src</a></code> attribute are present, then the
<code title=attr-embed-type><a href=#attr-embed-type>type</a></code> attribute must specify the
same type as the <a href=#content-type title=Content-Type>explicit Content-Type
metadata</a> of the resource given by the <code title=attr-embed-src><a href=#attr-embed-src>src</a></code> attribute.</p>
attribute, if present, gives the <a href=#mime-type>MIME type</a> of the
plugin to instantiate. The value must be a <a href=#valid-mime-type>valid MIME
type</a>. If both the <code title=attr-embed-type><a href=#attr-embed-type>type</a></code>
attribute and the <code title=attr-embed-src><a href=#attr-embed-src>src</a></code> attribute
are present, then the <code title=attr-embed-type><a href=#attr-embed-type>type</a></code>
attribute must specify the same type as the <a href=#content-type title=Content-Type>explicit Content-Type metadata</a> of the
resource given by the <code title=attr-embed-src><a href=#attr-embed-src>src</a></code>
attribute.</p>

<div class=impl>

Expand Down Expand Up @@ -20291,8 +20300,7 @@ <h4 id=the-object-element><span class=secno>4.8.5 </span>The <dfn><code>object</

<p>The <dfn id=attr-object-type title=attr-object-type><code>type</code></dfn>
attribute, if present, specifies the type of the resource. If
present, the attribute must be a <a href=#valid-mime-type>valid MIME type</a>,
optionally with parameters.</p>
present, the attribute must be a <a href=#valid-mime-type>valid MIME type</a>.</p>

<p>At least one of either the <code title=attr-object-data><a href=#attr-object-data>data</a></code> attribute or the <code title=attr-object-type><a href=#attr-object-type>type</a></code> attribute must be present.</p>

Expand Down Expand Up @@ -22204,10 +22212,11 @@ <h5 id=loading-the-media-resource><span class=secno>4.8.10.5 </span>Loading the
fetch the resource</dt>

<dt>If the <a href=#media-resource>media resource</a> is found to have <a href=#content-type title=Content-Type>Content-Type metadata</a> that, when
parsed as a <a href=#mime-type>MIME type</a> (including any codecs described by the
<code title="">codecs</code> parameter), represents <a href=#a-type-that-the-user-agent-knows-it-cannot-render>a type
that the user agent knows it cannot render</a> (even if the
actual <a href=#media-data>media data</a> is in a supported format)</dt>
parsed as a <a href=#mime-type>MIME type</a> (including any codecs
described by the <code title="">codecs</code> parameter),
represents <a href=#a-type-that-the-user-agent-knows-it-cannot-render>a type that the user agent knows it cannot
render</a> (even if the actual <a href=#media-data>media data</a> is in a
supported format)</dt>

<dt>If the <a href=#media-data>media data</a> can be fetched but is found by
inspection to be in an unsupported format, or can otherwise not
Expand Down Expand Up @@ -34597,7 +34606,7 @@ <h6 id=file-upload-state><span class=secno>4.10.5.1.18 </span><dfn title=attr-in

<dd>Indicates that image files are accepted.</dd>

<dt>A <a href=#valid-mime-type>valid MIME type</a>, with no parameters</dt>
<dt>A <a href=#valid-mime-type-with-no-parameters>valid MIME type with no parameters</a></dt>

<dd>Indicates that files of the specified type are accepted.</dd>

Expand Down Expand Up @@ -52763,8 +52772,8 @@ <h4 id=custom-handlers><span class=secno>6.8.2 </span>Custom scheme and content
such a link, he is given the opportunity to use that Web
site. Analogously, the <dfn id=dom-navigator-registercontenthandler title=dom-navigator-registerContentHandler><code>registerContentHandler()</code></dfn>
method allows Web sites to register themselves as possible handlers
for content in a particular <a href=#mime-type>MIME type</a>. For example, the same online
fax service could register itself as a handler for
for content in a particular <a href=#mime-type>MIME type</a>. For example, the
same online fax service could register itself as a handler for
<code>image/g3fax</code> files (<a href=#refsRFC1494>[RFC1494]</a>), so that if the user has no
native application capable of handling G3 Facsimile byte streams,
his Web browser can instead suggest he use that site to view the
Expand Down Expand Up @@ -52844,9 +52853,9 @@ <h4 id=custom-handlers><span class=secno>6.8.2 </span>Custom scheme and content
whitespace, or include MIME parameters, then the handler being
registered will never be used.</p>

<p class=note>The type is compared to the <a href=#mime-type>MIME type</a> used by the
user agent <em>after</em> the sniffing algorithms have been
applied.</p>
<p class=note>The type is compared to the <a href=#mime-type>MIME type</a>
used by the user agent <em>after</em> the sniffing algorithms have
been applied.</p>

</dd>

Expand Down Expand Up @@ -52889,8 +52898,9 @@ <h4 id=custom-handlers><span class=secno>6.8.2 </span>Custom scheme and content
<pre>&lt;a href="chickenk&iuml;wi.soup"&gt;Download our Chicken K&iuml;wi soup!&lt;/a&gt;</pre>

<p>...then, assuming this <code>chickenk&iuml;wi.soup</code> file
was served with the <a href=#mime-type>MIME type</a> <code>application/x-soup</code>,
the UA might navigate to the following URL:</p>
was served with the <a href=#mime-type>MIME type</a>
<code>application/x-soup</code>, the UA might navigate to the
following URL:</p>

<pre>http://example.com/soup?url=http://www.example.net/chickenk%C3%AFwi.soup</pre>

Expand Down Expand Up @@ -56981,12 +56991,13 @@ <h4 id=hyperlink-elements><span class=secno>6.12.1 </span>Hyperlink elements</h4
resource.</span></p>

<p>The <dfn id=attr-hyperlink-type title=attr-hyperlink-type><code>type</code></dfn>
attribute, if present, gives the <a href=#mime-type>MIME type</a> of the linked
resource. It is purely advisory. The value must be a <a href=#valid-mime-type>valid
MIME type</a>, optionally with parameters. <span class=impl>User agents must not consider the <code title=attr-hyperlink-type><a href=#attr-hyperlink-type>type</a></code> attribute authoritative
&mdash; upon fetching the resource, user agents must not use
metadata included in the link to the resource to determine its
type.</span></p>
attribute, if present, gives the <a href=#mime-type>MIME type</a> of the
linked resource. It is purely advisory. The value must be a
<a href=#valid-mime-type>valid MIME type</a>. <span class=impl>User agents must
not consider the <code title=attr-hyperlink-type><a href=#attr-hyperlink-type>type</a></code>
attribute authoritative &mdash; upon fetching the resource, user
agents must not use metadata included in the link to the resource to
determine its type.</span></p>


<div class=impl>
Expand Down Expand Up @@ -65076,8 +65087,9 @@ <h4 id=processing-model-4><span class=secno>10.2.3 </span>Processing model</h4>
must cause the user agent to <a href=#fail-the-connection>fail the connection</a>.</p>

<p>HTTP 204 No Content, and 205 Reset Content responses are
equivalent to 200 OK responses with the right <a href=#mime-type>MIME type</a> but no
content, and thus must <a href=#reestablish-the-connection>reestablish the connection</a>.</p>
equivalent to 200 OK responses with the right <a href=#mime-type>MIME type</a>
but no content, and thus must <a href=#reestablish-the-connection>reestablish the
connection</a>.</p>

<p>Other HTTP response codes in the 2xx range <!--201 Created, 202
Accepted, 203 Non-Authoritative Information, and 206 Partial
Expand Down Expand Up @@ -84915,7 +84927,7 @@ <h3 class=no-num id=attributes-0>Attributes</h3>
<tbody><tr><th> <code title="">accept</code>
<td> <code title=attr-input-accept><a href=#attr-input-accept>input</a></code>
<td> Hint for expected file type in <a href=#file-upload-state title=attr-input-type-file>file upload controls</a>
<td> <a href=#set-of-comma-separated-tokens>Set of comma-separated tokens</a>* consisting of <a href=#valid-mime-type title="valid MIME type">valid MIME types</a> or <code title="">audio/*</code>, <code title="">video/*</code>, or <code title="">image/*</code>
<td> <a href=#set-of-comma-separated-tokens>Set of comma-separated tokens</a>* consisting of <a href=#valid-mime-type title="valid MIME type">valid MIME types with no parameters</a> or <code title="">audio/*</code>, <code title="">video/*</code>, or <code title="">image/*</code>
<tr><th> <code title="">accept-charset</code>
<td> <code title=attr-form-accept-charset><a href=#attr-form-accept-charset>form</a></code>
<td> Character encodings to use for <a href=#form-submission>form submission</a>
Expand Down

0 comments on commit 58fff30

Please sign in to comment.