Skip to content
Browse files

[] (0) Include MIME type registration sections.

git-svn-id: http://svn.whatwg.org/webapps@3552 340c8d12-0b0e-0410-8428-c7bf67bfef74
  • Loading branch information...
1 parent 441207a commit cfcd13e264e6d29a789a62d776b7c0af986e5540 @Hixie Hixie committed
Showing with 811 additions and 87 deletions.
  1. +354 −43 index
  2. +457 −44 source
View
397 index
@@ -1038,6 +1038,12 @@
<li><a href=#localization><span class=secno>13.1 </span>Localization</a></li>
<li><a href=#declarative-3d-scenes><span class=secno>13.2 </span>Declarative 3D scenes</a></li>
<li><a href=#rendering-and-the-dom><span class=secno>13.3 </span>Rendering and the DOM</a></ol></li>
+ <li><a class=no-num href=#iana-considerations>IANA considerations</a>
+ <ol>
+ <li><a href=#text/html><span class=secno>13.1 </span><code>text/html</code></a></li>
+ <li><a href=#application/xhtml+xml><span class=secno>13.2 </span><code>application/xhtml+xml</code></a></li>
+ <li><a href=#text/cache-manifest><span class=secno>13.3 </span><code>text/cache-manifest</code></a></li>
+ <li><a href=#application/microdata+json><span class=secno>13.4 </span><code>application/microdata+json</code></a></ol></li>
<li><a class=no-num href=#index>Index</a></li>
<li><a class=no-num href=#references>References</a></li>
<li><a class=no-num href=#acknowledgements>Acknowledgements</a></ol>
@@ -1274,17 +1280,18 @@
<p>The first such concrete syntax is "HTML5". This is the format
recommended for most authors. It is compatible with all legacy Web
- browsers. If a document is transmitted with the MIME type <code title="">text/html</code>, then it will be processed as an "HTML5"
+ browsers. If a document is transmitted with the MIME type
+ <code><a href=#text/html>text/html</a></code>, then it will be processed as an "HTML5"
document by Web browsers.</p>
<p>The second concrete syntax uses XML, and is known as
"XHTML5". When a document is transmitted with an <a href=#xml-mime-type>XML MIME
- type</a>, such as <code title="">application/xhtml+xml</code>,
- then it is processed by an XML processor by Web browsers, and
- treated as an "XHTML5" document. Authors are reminded that the
- processing for XML and HTML differs; in particular, even minor
- syntax errors will prevent an XML document from being rendered
- fully, whereas they would be ignored in the "HTML5" syntax.</p>
+ type</a>, such as <code><a href=#application/xhtml+xml>application/xhtml+xml</a></code>, then it is
+ processed by an XML processor by Web browsers, and treated as an
+ "XHTML5" document. Authors are reminded that the processing for XML
+ and HTML differs; in particular, even minor syntax errors will
+ prevent an XML document from being rendered fully, whereas they
+ would be ignored in the "HTML5" syntax.</p>
<p>The "DOM5 HTML", "HTML5", and "XHTML5" representations cannot all
represent the same content. For example, namespaces cannot be
@@ -1856,7 +1863,7 @@ a.setAttribute('href', 'http://example.com/'); // change the content attribute d
element that forms part of the transform.</p>
<p>Web browsers that support <a href=#syntax>the HTML syntax</a> must
- process documents labeled as <code>text/html</code> as described
+ process documents labeled as <code><a href=#text/html>text/html</a></code> as described
in this specification, so that users can interact with them.</p>
<p>User agents that support scripting must also be conforming
@@ -2061,12 +2068,12 @@ a.setAttribute('href', 'http://example.com/'); // change the content attribute d
attributes from the <a href=#html-namespace-0>HTML namespace</a> and that are served
over the wire (e.g. by HTTP) must be sent using an <a href=#xml-mime-type>XML MIME
type</a> such as <code>application/xml</code> or
- <code>application/xhtml+xml</code> and must not be served as
- <code>text/html</code>. <a href=#refsRFC3023>[RFC3023]</a></p>
+ <code><a href=#application/xhtml+xml>application/xhtml+xml</a></code> and must not be served as
+ <code><a href=#text/html>text/html</a></code>. <a href=#refsRFC3023>[RFC3023]</a></p>
<p id=authors-using-html>Documents that use <a href=#syntax>the HTML
syntax</a>, if they are served over the wire (e.g. by HTTP) must
- be labeled with the <code>text/html</code> MIME type.</p>
+ be labeled with the <code><a href=#text/html>text/html</a></code> MIME type.</p>
<p class=impl id=entity-references>The language in this
specification assumes that the user agent expands all entity
@@ -9106,7 +9113,7 @@ http://software.hixie.ch/utilities/js/live-dom-viewer/?%3C%21DOCTYPE%20HTML%3E%0
previous object, which is then returned.</p>
<p>If the <var title="">type</var> argument is omitted or has the
- value "<code title="">text/html</code>", then the resulting
+ value "<code><a href=#text/html>text/html</a></code>", then the resulting
<code>Document</code> has an HTML parser associated with it, which
can be given data to parse using <code title=dom-document-write><a href=#dom-document-write>document.write()</a></code>. Otherwise, all
content passed to <code title=dom-document-write><a href=#dom-document-write>document.write()</a></code> will be parsed
@@ -9146,7 +9153,7 @@ http://software.hixie.ch/utilities/js/live-dom-viewer/?%3C%21DOCTYPE%20HTML%3E%0
follows:</p>
<ol><li><p>Let <var title="">type</var> be the value of the first
- argument, if there is one, or "<code>text/html</code>"
+ argument, if there is one, or "<code><a href=#text/html>text/html</a></code>"
otherwise.</li>
<li><p>Let <var title="">replace</var> be true if there is a second
@@ -9238,7 +9245,7 @@ http://software.hixie.ch/utilities/js/live-dom-viewer/?%3C%21DOCTYPE%20HTML%3E%0
<p>If <var title="">type</var> is <em>not</em> now an <a href=#ascii-case-insensitive>ASCII
case-insensitive</a> match for the string
- "<code>text/html</code>", then act as if the tokenizer had emitted
+ "<code><a href=#text/html>text/html</a></code>", then act as if the tokenizer had emitted
a start tag token with the tag name "pre", then set the <a href=#html-parser>HTML
parser</a>'s <a href=#tokenization>tokenization</a> stage's <a href=#content-model-flag>content
model flag</a> to <i title="">PLAINTEXT</i>.</p>
@@ -45208,8 +45215,9 @@ document.body.appendChild(outer);</pre>
element in the <a href=#atom-namespace>Atom namespace</a>. Add a <code title="">rel</code> attribute whose value is the string "<code title="">alternate</code>" to <var title="">x</var>. If the
document being converted is an <a href=#html-documents title="HTML documents">HTML
document</a>, add a <code title="">type</code> attribute whose
- value is the string "<code title="">text/html</code>" to <var title="">x</var>. Otherwise, the document being converted is an
- <a href=#xml-documents title="XML documents">XML document</a>; add a <code title="">type</code> attribute whose value is the string "<code title="">application/xhtml+xml</code>" to <var title="">x</var>. Append a text node with its data set to
+ value is the string "<code><a href=#text/html>text/html</a></code>" to <var title="">x</var>. Otherwise, the document being converted is an
+ <a href=#xml-documents title="XML documents">XML document</a>; add a <code title="">type</code> attribute whose value is the string
+ "<code><a href=#application/xhtml+xml>application/xhtml+xml</a></code>" to <var title="">x</var>. Append a text node with its data set to
<a href="#the-document's-current-address">the document's current address</a> to <var title="">x</var>. Append <var title="">x</var> to the root element
of <var title="">R</var>.</p>
@@ -47799,8 +47807,9 @@ JSURL: http://ietfreport.isoc.org/all-ids/draft-hoehrmann-javascript-scheme-00.t
to an HTTP resource with an HTTP 204 No Content response.</p>
<p>Otherwise, the URL must be treated in a manner equivalent to an
- HTTP resource with a 200 OK response whose <a href=#content-type title=Content-Type>Content-Type metadata</a> is <code title="">text/html</code> and whose response body is the return
- value converted to a string value.</p>
+ HTTP resource with a 200 OK response whose <a href=#content-type title=Content-Type>Content-Type metadata</a> is
+ <code><a href=#text/html>text/html</a></code> and whose response body is the return value
+ converted to a string value.</p>
<p class=note>Certain contexts, in particular <code><a href=#the-img-element>img</a></code>
elements, ignore the <a href=#content-type title=Content-Type>Content-Type
@@ -49193,7 +49202,7 @@ interface <dfn id=function>Function</dfn> {
</dl><p>User agents should raise <code><a href=#security_err>SECURITY_ERR</a></code> exceptions if
the methods are called with <var title="">scheme</var> or <var title="">mimeType</var> values that the UA deems to be
"privileged". For example, a site attempting to register a handler
- for <code>http</code> URLs or <code>text/html</code> content in a
+ for <code>http</code> URLs or <code><a href=#text/html>text/html</a></code> content in a
Web browser would likely cause an exception to be raised.</p>
<p>User agents must raise a <code><a href=#syntax_err>SYNTAX_ERR</a></code> exception if the
@@ -49522,8 +49531,7 @@ clock.css
clock.js</pre>
<p>With a small change to the HTML file, the manifest (served as
- <code title="">text/cache-manifest</code>) is linked to the
- application:</p>
+ <code><a href=#text/cache-manifest>text/cache-manifest</a></code>) is linked to the application:</p>
<pre>&lt;!-- clock.html --&gt;
&lt;!DOCTYPE HTML&gt;
@@ -49757,10 +49765,11 @@ style/default.css</pre>
<h5 id=writing-cache-manifests><span class=secno>6.9.3.2 </span>Writing cache manifests</h5>
- <p>Manifests must be served using the <code title="">text/cache-manifest</code> MIME type. All resources served
- using the <code title="">text/cache-manifest</code> MIME type must
- follow the syntax of application cache manifests, as described in
- this section.</p>
+ <p>Manifests must be served using the
+ <code><a href=#text/cache-manifest>text/cache-manifest</a></code> MIME type. All resources served
+ using the <code><a href=#text/cache-manifest>text/cache-manifest</a></code> MIME type must follow the
+ syntax of application cache manifests, as described in this
+ section.</p>
<p>An application cache manifest is a text file, whose text is
encoded using UTF-8. Data in application cache manifests is
@@ -50260,7 +50269,8 @@ style/default.css</pre>
<p><i>Fetching the manifest</i>: <a href=#fetch>Fetch</a> the resource
from <var title="">manifest URL</var>, and let <var title="">manifest</var> be that resource.</p>
- <p>If the resource is labeled with the MIME type <code title="">text/cache-manifest</code>, parse <var title="">manifest</var> according to the <a href=#parse-a-manifest title="parse a
+ <p>If the resource is labeled with the MIME type
+ <code><a href=#text/cache-manifest>text/cache-manifest</a></code>, parse <var title="">manifest</var> according to the <a href=#parse-a-manifest title="parse a
manifest">rules for parsing manifests</a>, obtaining a list of
<a href=#concept-appcache-explicit title=concept-appcache-explicit>explicit entries</a>,
<a href=#concept-appcache-fallback title=concept-appcache-fallback>fallback entries</a>
@@ -50323,8 +50333,8 @@ style/default.css</pre>
cancels the download, or the parser for manifests fails when
checking the magic signature), or if the server returned a
redirect, or if the resource is labeled with a MIME type other
- than <code title="">text/cache-manifest</code>, then run the
- <a href=#cache-failure-steps>cache failure steps</a>.</p>
+ than <code><a href=#text/cache-manifest>text/cache-manifest</a></code>, then run the <a href=#cache-failure-steps>cache
+ failure steps</a>.</p>
</li>
@@ -52081,21 +52091,21 @@ style/default.css</pre>
of the following types, jump to the appropriate entry in the
following list, and process the resource as described there:</p>
- <dl class=switch><dt>"text/html"</dt>
+ <dl class=switch><dt>"<code><a href=#text/html>text/html</a></code>"</dt>
<dd>Follow the steps given in the <a href=#read-html title=navigate-html>HTML document</a> section, and abort
these steps.</dd>
<!-- an <span>XML MIME type</span> -->
- <dt>Any type ending in "+xml"</dt>
- <dt>"application/xml"</dt>
- <dt>"text/xml"</dt>
+ <dt>Any type ending in "<code title="">+xml</code>"</dt>
+ <dt>"<code>application/xml</code>"</dt>
+ <dt>"<code>text/xml</code>"</dt>
<dd>Follow the steps given in the <a href=#read-xml title=navigate-xml>XML
document</a> section. If that section determines that the
content is <em>not</em> to be displayed as a generic XML
document, then proceed to the next step in this overall set of
steps. Otherwise, abort these steps.</dd>
- <dt>"text/plain"</dt>
+ <dt>"<code>text/plain</code>"</dt>
<dd>Follow the steps given in the <a href=#read-text title=navigate-text>plain text file</a> section, and abort
these steps.</dd>
@@ -52504,7 +52514,7 @@ style/default.css</pre>
(for example, the processing of fragment identifiers for <a href=#xml-mime-type title="XML MIME type">XML MIME types</a> is the responsibility of
RFC3023).</p>
- <p>For HTML documents (and the <code>text/html</code> MIME type),
+ <p>For HTML documents (and the <code><a href=#text/html>text/html</a></code> MIME type),
the following processing model must be followed to determine what
<a href=#the-indicated-part-of-the-document>the indicated part of the document</a> is.</p>
@@ -56301,8 +56311,7 @@ style/default.css</pre>
and <a href=#extracting-json title="extracting JSON">extract the microdata from those
nodes into a JSON form</a>, and then must add the resulting
string to the <code title=dom-DragEvent-dataTransfer><a href=#dom-dragevent-datatransfer>dataTransfer</a></code> member,
- associated with the <code title="">application/microdata+json</code> format.</p> <!-- XXX
- register -->
+ associated with the <code title="">application/microdata+json</code> format.</p>
</li>
@@ -58588,7 +58597,8 @@ interface <dfn id=messageport>MessagePort</dfn> {
<h2 id=syntax><span class=secno>9 </span><dfn>The HTML syntax</dfn></h2>
- <p class=note>This section only describes the rules for <code title="">text/html</code> resources. Rules for XML resources are
+ <p class=note>This section only describes the rules for
+ <code><a href=#text/html>text/html</a></code> resources. Rules for XML resources are
discussed in the section below entitled "<a href=#the-xhtml-syntax>The XHTML
syntax</a>".</p>
@@ -65858,7 +65868,7 @@ http://lxr.mozilla.org/seamonkey/search?string=nested
<p>The <dfn id=xmlns-namespace>XMLNS namespace</dfn> is: <code>http://www.w3.org/2000/xmlns/</code></p>
<hr><p>Data mining tools and other user agents that perform operations
- on <code title="">text/html</code> content without running scripts,
+ on <code><a href=#text/html>text/html</a></code> content without running scripts,
evaluating CSS or XPath expressions, or otherwise exposing the
resulting DOM to arbitrary content, may "support namespaces" by just
asserting that their DOM node analogues are in certain namespaces,
@@ -68374,9 +68384,8 @@ http://lxr.mozilla.org/seamonkey/search?string=nested
<h2 id=the-xhtml-syntax><span class=secno>10 </span><dfn id=xhtml>The XHTML syntax</dfn></h2>
<p class=note>This section only describes the rules for XML
- resources. Rules for <code title="">text/html</code> resources are
- discussed in the section above entitled "<a href=#syntax>The HTML
- syntax</a>".</p>
+ resources. Rules for <code><a href=#text/html>text/html</a></code> resources are discussed
+ in the section above entitled "<a href=#syntax>The HTML syntax</a>".</p>
<div class=impl>
@@ -72251,6 +72260,310 @@ time:empty { binding: <i title="">time</i>; }</pre>
+ <h2 class=no-num id=iana-considerations>IANA considerations</h2>
+
+ <!-- http://www.w3.org/2002/06/registering-mediatype.html -->
+
+ <p>This registration is for community review and will be submitted
+ to the IESG for review, approval, and registration with IANA.</p>
+
+ <h3 id=text/html><span class=secno>13.1 </span><dfn><code>text/html</code></dfn></h3>
+
+ <!--
+ To: ietf-types@iana.org
+ Subject: Registration of media type text/html
+ -->
+
+ <!--
+ Obsoletes:
+ http://www.ietf.org/rfc/rfc2854
+ -->
+
+ <dl><dt>Type name:</dt>
+ <dd>text</dd>
+ <dt>Subtype name:</dt>
+ <dd>html</dd>
+ <dt>Required parameters:</dt>
+ <dd>No required parameters</dd>
+ <dt>Optional parameters:</dt>
+ <dd>
+ <dl><dt><code title="">charset</code></dt>
+ <dd>
+ <p>The <code title="">charset</code> parameter may be provided
+ to definitively specify the <a href="#document's-character-encoding">document's character
+ encoding</a>, overriding any <a href=#character-encoding-declaration title="character encoding
+ declaration">character encoding declarations</a> in the
+ document. The parameter's value must be the name of the
+ character encoding used to serialize the file, must be a valid
+ character encoding name, and must be the preferred name for that
+ encoding. <a href=#refsIANACHARSET>[IANACHARSET]</a></p>
+ </dd>
+ </dl></dd>
+ <dt>Encoding considerations:</dt>
+ <dd>See the section on <a href=#character-encoding-declaration title="character encoding
+ declaration">character encoding declarations</a>.</dd>
+ <dt>Security considerations:</dt>
+ <dd>
+
+ <p>Entire novels have been written about the security
+ considerations that apply to HTML documents. Many are listed in
+ this document, to which the reader is referred for more
+ details. Some general concerns bear mentioning here, however:</p>
+
+ <p>HTML is scripted language, and has a large number of APIs (some
+ of which are described in this document). Script can expose the
+ user to potential risks of information leakage, credential
+ leakage, cross-site scripting attacks, cross-site request
+ forgeries, and a host of other problems. While the designs in this
+ specification are intended to be safe if implemented correctly, a
+ full implementation is a massive undertaking and, as with any
+ software, user agents are likely to have security bugs.</p>
+
+ <p>Even without scripting, there are specific features in HTML
+ which, for historical reasons, are required for broad
+ compatibility with legacy content but that expose the user to
+ unfortunate security problems. In particular, the <code><a href=#the-img-element>img</a></code>
+ element can be used in conjunction with some other features as a
+ way to effect a port scan from the user's location on the
+ Internet. This can expose local network topologies that the
+ attacker would otherwise not be able to determine.</p>
+
+ </dd>
+ <dt>Interoperability considerations:</dt>
+ <dd>
+ Rules for processing both conforming and non-conforming content
+ are defined in this specification.
+ </dd>
+ <dt>Published specification:</dt>
+ <dd>
+ This document is the relevant specification. Labeling a resource
+ with the <code><a href=#text/html>text/html</a></code> type asserts that the resource is
+ an <a href=#html-documents title="HTML documents">HTML document</a> using
+ <a href=#syntax>the HTML syntax</a>.
+ </dd>
+ <dt>Applications that use this media type:</dt>
+ <dd>
+ Web browsers, tools for processing Web content, HTML authoring
+ tools, search engines, validators.
+ </dd>
+ <dt>Additional information:</dt>
+ <dd>
+ <dl><dt>Magic number(s):</dt>
+ <dd>No sequence of bytes can uniquely identify an HTML
+ document. More information on detecting HTML documents is
+ available in the Content-Type Processing Model specification. <a href=#MIMESNIFF>[MIMESNIFF]</a></dd>
+ <dt>File extension(s):</dt>
+ <dd>"<code title="">html</code>" and "<code title="">htm</code>"
+ are commonly, but certainly not exclusively, used as the
+ extension for HTML documents.</dd>
+ <dt>Macintosh file type code(s):</dt>
+ <dd><code title="">TEXT</code></dd>
+ </dl></dd>
+ <dt>Person &amp; email address to contact for further information:</dt>
+ <dd>Ian Hickson &lt;ian@hixie.ch&gt;</dd>
+ <dt>Intended usage:</dt>
+ <dd>Common</dd>
+ <dt>Restrictions on usage:</dt>
+ <dd>No restrictions apply.</dd>
+ <dt>Author:</dt>
+ <dd>Ian Hickson &lt;ian@hixie.ch&gt;</dd>
+ <dt>Change controller:</dt>
+ <dd>Ian Hickson &lt;ian@hixie.ch&gt;</dd>
+ </dl><p>Fragment identifiers used with <code><a href=#text/html>text/html</a></code> resources
+ refer to <a href=#the-indicated-part-of-the-document>the indicated part of the document</a>.</p>
+
+
+ <h3 id=application/xhtml+xml><span class=secno>13.2 </span><dfn><code>application/xhtml+xml</code></dfn></h3>
+
+ <!--
+ To: ietf-types@iana.org
+ Subject: Registration of media type application/xhtml+xml
+ -->
+
+ <!--
+ Obsoletes:
+ http://www.ietf.org/rfc/rfc3236.txt
+ -->
+
+ <dl><dt>Type name:</dt>
+ <dd>application</dd>
+ <dt>Subtype name:</dt>
+ <dd>xhtml+xml</dd>
+ <dt>Required parameters:</dt>
+ <dd>Same as for <code>application/xml</code> <a href=#refsRFC3023>[RFC3023]</a></dd>
+ <dt>Optional parameters:</dt>
+ <dd>Same as for <code>application/xml</code> <a href=#refsRFC3023>[RFC3023]</a></dd>
+ <dt>Encoding considerations:</dt>
+ <dd>Same as for <code>application/xml</code> <a href=#refsRFC3023>[RFC3023]</a></dd>
+ <dt>Security considerations:</dt>
+ <dd>Same as for <code>application/xml</code> <a href=#refsRFC3023>[RFC3023]</a></dd>
+ <dt>Interoperability considerations:</dt>
+ <dd>Same as for <code>application/xml</code> <a href=#refsRFC3023>[RFC3023]</a></dd>
+ <dt>Published specification:</dt>
+ <dd>
+ Labeling a resource with the <code><a href=#application/xhtml+xml>application/xhtml+xml</a></code>
+ type asserts that the resource is an XML document that likely has
+ a root element from the <a href=#html-namespace-0>HTML namespace</a>. As such, the
+ relevant specifications are the XML specification, the Namespaces
+ in XML specification, and this specification. <a href=#refsXML>[XML]</a> <a href=#refsXMLNAMES>[XMLNAMES]</a>
+ </dd>
+ <dt>Applications that use this media type:</dt>
+ <dd>Same as for <code>application/xml</code> <a href=#refsRFC3023>[RFC3023]</a></dd>
+ <dt>Additional information:</dt>
+ <dd>
+ <dl><dt>Magic number(s):</dt>
+ <dd>Same as for <code>application/xml</code> <a href=#refsRFC3023>[RFC3023]</a></dd>
+ <dt>File extension(s):</dt>
+ <dd>"<code title="">xhtml</code>" and "<code title="">xht</code>"
+ are sometimes used as extensions for XML resources that have a
+ root element from the <a href=#html-namespace-0>HTML namespace</a>.</dd>
+ <dt>Macintosh file type code(s):</dt>
+ <dd><code title="">TEXT</code></dd>
+ </dl></dd>
+ <dt>Person &amp; email address to contact for further information:</dt>
+ <dd>Ian Hickson &lt;ian@hixie.ch&gt;</dd>
+ <dt>Intended usage:</dt>
+ <dd>Common</dd>
+ <dt>Restrictions on usage:</dt>
+ <dd>No restrictions apply.</dd>
+ <dt>Author:</dt>
+ <dd>Ian Hickson &lt;ian@hixie.ch&gt;</dd>
+ <dt>Change controller:</dt>
+ <dd>Ian Hickson &lt;ian@hixie.ch&gt;</dd>
+ </dl><p>Fragment identifiers used with <code><a href=#application/xhtml+xml>application/xhtml+xml</a></code>
+ resources have the same semantics as with any XML MIME type. <a href=#refsRFC3023>[RFC3023]</a></p>
+
+
+ <h3 id=text/cache-manifest><span class=secno>13.3 </span><dfn><code>text/cache-manifest</code></dfn></h3>
+
+ <!--
+ To: ietf-types@iana.org
+ Subject: Registration of media type text/cache-manifest
+ -->
+
+ <dl><dt>Type name:</dt>
+ <dd>text</dd>
+ <dt>Subtype name:</dt>
+ <dd>cache-manifest</dd>
+ <dt>Required parameters:</dt>
+ <dd>No parameters</dd>
+ <dt>Optional parameters:</dt>
+ <dd>No parameters</dd>
+ <dt>Encoding considerations:</dt>
+ <dd>Always UTF-8.</dd>
+ <dt>Security considerations:</dt>
+ <dd>
+ <p>Cache manifests themselves pose no immediate risk unless
+ sensitive information is included within the
+ manifest. Implementations, however, are required to follow
+ specific rules when populating a cache based on a cache manifest,
+ to ensure that certain origin-based restrictions are
+ honored. Failure to correctly implement these rules can result in
+ information leakage, cross-site scripting attacks, and the
+ like.</p>
+ </dd>
+ <dt>Interoperability considerations:</dt>
+ <dd>
+ Rules for processing both conforming and non-conforming content
+ are defined in this specification.
+ </dd>
+ <dt>Published specification:</dt>
+ <dd>
+ This document is the relevant specification.
+ </dd>
+ <dt>Applications that use this media type:</dt>
+ <dd>
+ Web browsers.
+ </dd>
+ <dt>Additional information:</dt>
+ <dd>
+ <dl><dt>Magic number(s):</dt>
+ <dd>Cache manifests begin with the US-ASCII string "<code title="">CACHE MANIFEST</code>", followed by either a U+0020
+ SPACE character, a U+0009 CHARACTER TABULATION (tab) character, a
+ U+000A LINE FEED (LF) character, or a U+000D CARRIAGE RETURN (CR)
+ character.</dd>
+ <dt>File extension(s):</dt>
+ <dd>"<code title="">manifest</code>"</dd>
+ <dt>Macintosh file type code(s):</dt>
+ <dd>No specific Macintosh file type codes are recommended for this type.</dd>
+ </dl></dd>
+ <dt>Person &amp; email address to contact for further information:</dt>
+ <dd>Ian Hickson &lt;ian@hixie.ch&gt;</dd>
+ <dt>Intended usage:</dt>
+ <dd>Common</dd>
+ <dt>Restrictions on usage:</dt>
+ <dd>No restrictions apply.</dd>
+ <dt>Author:</dt>
+ <dd>Ian Hickson &lt;ian@hixie.ch&gt;</dd>
+ <dt>Change controller:</dt>
+ <dd>Ian Hickson &lt;ian@hixie.ch&gt;</dd>
+ </dl><p>Fragment identifiers have no meaning with
+ <code><a href=#text/cache-manifest>text/cache-manifest</a></code> resources.</p>
+
+
+ <h3 id=application/microdata+json><span class=secno>13.4 </span><dfn><code>application/microdata+json</code></dfn></h3>
+
+ <!--
+ To: ietf-types@iana.org
+ Subject: Registration of media type application/microdata+json
+ -->
+
+ <dl><dt>Type name:</dt>
+ <dd>application</dd>
+ <dt>Subtype name:</dt>
+ <dd>microdata+json</dd>
+ <dt>Required parameters:</dt>
+ <dd>Same as for <code>application/json</code> <a href=#refsJSON>[JSON]</a></dd>
+ <dt>Optional parameters:</dt>
+ <dd>Same as for <code>application/json</code> <a href=#refsJSON>[JSON]</a></dd>
+ <dt>Encoding considerations:</dt>
+ <dd>Always UTF-8.</dd>
+ <dt>Security considerations:</dt>
+ <dd>Same as for <code>application/json</code> <a href=#refsJSON>[JSON]</a></dd>
+ <dt>Interoperability considerations:</dt>
+ <dd>Same as for <code>application/json</code> <a href=#refsJSON>[JSON]</a></dd>
+ <dt>Published specification:</dt>
+ <dd>
+
+ Labeling a resource with the
+ <code><a href=#application/microdata+json>application/microdata+json</a></code> type asserts that the
+ resource is a JSON text that consists of an object with a single
+ entry called "<code title="">items</code>" consisting of an array
+ of entries, each of which consists of an object with two entries,
+ one called "<code title="">type</code>" whose value is an array of
+ strings, and one called "<code title="">properties</code>" whose
+ value is an object whose entries each have a value consisting of
+ an array of either objects or strings, the objects being of the
+ same form as the objects in the aforementioned "<code title="">items</code>" entry. As such, the relevant specifications
+ are the JSON specification and this specification. <a href=#refsJSON>[JSON]</a>
+
+ </dd>
+ <dt>Applications that use this media type:</dt>
+ <dd>Same as for <code>application/json</code> <a href=#refsJSON>[JSON]</a></dd>
+ <dt>Additional information:</dt>
+ <dd>
+ <dl><dt>Magic number(s):</dt>
+ <dd>Same as for <code>application/json</code> <a href=#refsJSON>[JSON]</a></dd>
+ <dt>File extension(s):</dt>
+ <dd>Same as for <code>application/json</code> <a href=#refsJSON>[JSON]</a></dd>
+ <dt>Macintosh file type code(s):</dt>
+ <dd>Same as for <code>application/json</code> <a href=#refsJSON>[JSON]</a></dd>
+ </dl></dd>
+ <dt>Person &amp; email address to contact for further information:</dt>
+ <dd>Ian Hickson &lt;ian@hixie.ch&gt;</dd>
+ <dt>Intended usage:</dt>
+ <dd>Common</dd>
+ <dt>Restrictions on usage:</dt>
+ <dd>No restrictions apply.</dd>
+ <dt>Author:</dt>
+ <dd>Ian Hickson &lt;ian@hixie.ch&gt;</dd>
+ <dt>Change controller:</dt>
+ <dd>Ian Hickson &lt;ian@hixie.ch&gt;</dd>
+ </dl><p>Fragment identifiers used with
+ <code><a href=#application/microdata+json>application/microdata+json</a></code> resources have the same
+ semantics as when used with <code>application/json</code>. <a href=#refsJSON>[JSON]</a></p>
+
+
<h2 class=no-num id=index>Index</h2>
@@ -72998,7 +73311,6 @@ TODO (or delay):
field is not focused, the value is displayed differently. Seems
like this would also be useful e.g. for <output> or something so
you can display localised dates, etc.
- XXX * update text/html RFC
XXX * password and confirm password: can we have a way to do client-side
validation of this?
XXX * <input type="search">
@@ -73095,7 +73407,6 @@ TODO (or delay):
XXX * s/raise/throw/g
XXX * be clearer about arrays/lists/collections being zero-based
despite using the term "/index/th".
- XXX * update RFC 2854 (text/html reg)
-->
View
501 source
@@ -251,18 +251,18 @@
<p>The first such concrete syntax is "HTML5". This is the format
recommended for most authors. It is compatible with all legacy Web
- browsers. If a document is transmitted with the MIME type <code
- title="">text/html</code>, then it will be processed as an "HTML5"
+ browsers. If a document is transmitted with the MIME type
+ <code>text/html</code>, then it will be processed as an "HTML5"
document by Web browsers.</p>
<p>The second concrete syntax uses XML, and is known as
"XHTML5". When a document is transmitted with an <span>XML MIME
- type</span>, such as <code title="">application/xhtml+xml</code>,
- then it is processed by an XML processor by Web browsers, and
- treated as an "XHTML5" document. Authors are reminded that the
- processing for XML and HTML differs; in particular, even minor
- syntax errors will prevent an XML document from being rendered
- fully, whereas they would be ignored in the "HTML5" syntax.</p>
+ type</span>, such as <code>application/xhtml+xml</code>, then it is
+ processed by an XML processor by Web browsers, and treated as an
+ "XHTML5" document. Authors are reminded that the processing for XML
+ and HTML differs; in particular, even minor syntax errors will
+ prevent an XML document from being rendered fully, whereas they
+ would be ignored in the "HTML5" syntax.</p>
<p>The "DOM5 HTML", "HTML5", and "XHTML5" representations cannot all
represent the same content. For example, namespaces cannot be
@@ -9363,7 +9363,7 @@ http://software.hixie.ch/utilities/js/live-dom-viewer/?%3C%21DOCTYPE%20HTML%3E%0
previous object, which is then returned.</p>
<p>If the <var title="">type</var> argument is omitted or has the
- value "<code title="">text/html</code>", then the resulting
+ value "<code>text/html</code>", then the resulting
<code>Document</code> has an HTML parser associated with it, which
can be given data to parse using <code
title="dom-document-write">document.write()</code>. Otherwise, all
@@ -51341,11 +51341,11 @@ document.body.appendChild(outer);</pre>
title="">alternate</code>" to <var title="">x</var>. If the
document being converted is an <span title="HTML documents">HTML
document</span>, add a <code title="">type</code> attribute whose
- value is the string "<code title="">text/html</code>" to <var
+ value is the string "<code>text/html</code>" to <var
title="">x</var>. Otherwise, the document being converted is an
<span title="XML documents">XML document</span>; add a <code
- title="">type</code> attribute whose value is the string "<code
- title="">application/xhtml+xml</code>" to <var
+ title="">type</code> attribute whose value is the string
+ "<code>application/xhtml+xml</code>" to <var
title="">x</var>. Append a text node with its data set to
<span>the document's current address</span> to <var
title="">x</var>. Append <var title="">x</var> to the root element
@@ -54335,9 +54335,9 @@ JSURL: http://ietfreport.isoc.org/all-ids/draft-hoehrmann-javascript-scheme-00.t
<p>Otherwise, the URL must be treated in a manner equivalent to an
HTTP resource with a 200 OK response whose <span
- title="Content-Type">Content-Type metadata</span> is <code
- title="">text/html</code> and whose response body is the return
- value converted to a string value.</p>
+ title="Content-Type">Content-Type metadata</span> is
+ <code>text/html</code> and whose response body is the return value
+ converted to a string value.</p>
<p class="note">Certain contexts, in particular <code>img</code>
elements, ignore the <span title="Content-Type">Content-Type
@@ -56309,8 +56309,7 @@ interface <dfn>Function</dfn> {
<pre>EXAMPLE offline/clock/clock2.manifest</pre>
<p>With a small change to the HTML file, the manifest (served as
- <code title="">text/cache-manifest</code>) is linked to the
- application:</p>
+ <code>text/cache-manifest</code>) is linked to the application:</p>
<pre>EXAMPLE offline/clock/clock2.html</pre>
@@ -56597,11 +56596,11 @@ style/default.css</pre>
<h5>Writing cache manifests</h5>
- <p>Manifests must be served using the <code
- title="">text/cache-manifest</code> MIME type. All resources served
- using the <code title="">text/cache-manifest</code> MIME type must
- follow the syntax of application cache manifests, as described in
- this section.</p>
+ <p>Manifests must be served using the
+ <code>text/cache-manifest</code> MIME type. All resources served
+ using the <code>text/cache-manifest</code> MIME type must follow the
+ syntax of application cache manifests, as described in this
+ section.</p>
<p>An application cache manifest is a text file, whose text is
encoded using UTF-8. Data in application cache manifests is
@@ -57183,8 +57182,8 @@ style/default.css</pre>
from <var title="">manifest URL</var>, and let <var
title="">manifest</var> be that resource.</p>
- <p>If the resource is labeled with the MIME type <code
- title="">text/cache-manifest</code>, parse <var
+ <p>If the resource is labeled with the MIME type
+ <code>text/cache-manifest</code>, parse <var
title="">manifest</var> according to the <span title="parse a
manifest">rules for parsing manifests</span>, obtaining a list of
<span title="concept-appcache-explicit">explicit entries</span>,
@@ -57264,8 +57263,8 @@ style/default.css</pre>
cancels the download, or the parser for manifests fails when
checking the magic signature), or if the server returned a
redirect, or if the resource is labeled with a MIME type other
- than <code title="">text/cache-manifest</code>, then run the
- <span>cache failure steps</span>.</p>
+ than <code>text/cache-manifest</code>, then run the <span>cache
+ failure steps</span>.</p>
</li>
@@ -59317,22 +59316,22 @@ style/default.css</pre>
<dl class="switch">
- <dt>"text/html"</dt>
+ <dt>"<code>text/html</code>"</dt>
<dd>Follow the steps given in the <span
title="navigate-html">HTML document</span> section, and abort
these steps.</dd>
<!-- an <span>XML MIME type</span> -->
- <dt>Any type ending in "+xml"</dt>
- <dt>"application/xml"</dt>
- <dt>"text/xml"</dt>
+ <dt>Any type ending in "<code title="">+xml</code>"</dt>
+ <dt>"<code>application/xml</code>"</dt>
+ <dt>"<code>text/xml</code>"</dt>
<dd>Follow the steps given in the <span title="navigate-xml">XML
document</span> section. If that section determines that the
content is <em>not</em> to be displayed as a generic XML
document, then proceed to the next step in this overall set of
steps. Otherwise, abort these steps.</dd>
- <dt>"text/plain"</dt>
+ <dt>"<code>text/plain</code>"</dt>
<dd>Follow the steps given in the <span
title="navigate-text">plain text file</span> section, and abort
these steps.</dd>
@@ -65957,8 +65956,7 @@ interface <dfn>SQLTransactionSync</dfn> {
string to the <code
title="dom-DragEvent-dataTransfer">dataTransfer</code> member,
associated with the <code
- title="">application/microdata+json</code> format.</p> <!-- XXX
- register -->
+ title="">application/microdata+json</code> format.</p>
</li>
@@ -70086,6 +70084,91 @@ data:&nbsp;test</pre>
<p>If an <code>EventSource</code> object is garbage collected while
its connection is still open, the connection must be closed.</p>
+
+ <h4>IANA considerations</h4>
+
+ <p>This registration is for community review and will be submitted
+ to the IESG for review, approval, and registration with IANA.</p>
+
+ <h3><dfn><code>text/event-stream</code></dfn></h3>
+
+ <!--
+ To: ietf-types@iana.org
+ Subject: Registration of media type text/event-stream
+ -->
+
+ <dl>
+ <dt>Type name:</dt>
+ <dd>text</dd>
+ <dt>Subtype name:</dt>
+ <dd>event-stream</dd>
+ <dt>Required parameters:</dt>
+ <dd>No parameters</dd>
+ <dt>Optional parameters:</dt>
+ <dd>No parameters</dd>
+ <dt>Encoding considerations:</dt>
+ <dd>Always UTF-8.</dd>
+ <dt>Security considerations:</dt>
+ <dd>
+
+ <p>An event stream from an origin distinct from the origin of the
+ content consuming the event stream can result in information
+ leakage. To avoid this, user agents are required to apply CORS
+ semantics or block all cross-origin loads. <a
+ href="#refsCORS">[CORS]</a></p>
+
+ <p>Event streams can overwhelm a user agent; a user agent is
+ expected to apply suitable restrictions to avoid depleting local
+ resources because of an overabundance of information from an event
+ stream.</p>
+
+ <p>Servers can be overwhelmed if a situation develops in which the
+ server is causing clients to reconnect rapidly. Servers should use
+ a 5xx status code to indicate capacity problems, as this will
+ prevent conforming clients from reconnecting automatically.</p>
+
+ </dd>
+ <dt>Interoperability considerations:</dt>
+ <dd>
+ Rules for processing both conforming and non-conforming content
+ are defined in this specification.
+ </dd>
+ <dt>Published specification:</dt>
+ <dd>
+ This document is the relevant specification.
+ </dd>
+ <dt>Applications that use this media type:</dt>
+ <dd>
+ Web browsers and tools using Web services.
+ </dd>
+ <dt>Additional information:</dt>
+ <dd>
+ <dl>
+ <dt>Magic number(s):</dt>
+ <dd>No sequence of bytes can uniquely identify an event stream.</dd>
+ <dt>File extension(s):</dt>
+ <dd>No specific file extensions are recommended for this type.</dd>
+ <dt>Macintosh file type code(s):</dt>
+ <dd>No specific Macintosh file type codes are recommended for this type.</dd>
+ </dl>
+ </dd>
+ <dt>Person &amp; email address to contact for further information:</dt>
+ <dd>Ian Hickson &lt;ian@hixie.ch></dd>
+ <dt>Intended usage:</dt>
+ <dd>Common</dd>
+ <dt>Restrictions on usage:</dt>
+ <dd>This format is only expected to be used by dynamic open-ended
+ streams served using HTTP or a similar protocol. Finite resources
+ are not expected to be labeled with this type.</dd>
+ <dt>Author:</dt>
+ <dd>Ian Hickson &lt;ian@hixie.ch></dd>
+ <dt>Change controller:</dt>
+ <dd>Ian Hickson &lt;ian@hixie.ch></dd>
+ </dl>
+
+ <p>Fragment identifiers have no meaning with
+ <code>text/event-stream</code> resources.</p>
+
<!--END eventsource--><!--START html5-->
@@ -71631,7 +71714,7 @@ Proxy-authorization: Basic ZWRuYW1vZGU6bm9jYXBlcyE=</pre>
<h5>IANA considerations</h5>
- <h6>Registrarion of ws: scheme</h6>
+ <h6>Registration of ws: scheme</h6>
<dl>
@@ -71672,7 +71755,7 @@ Proxy-authorization: Basic ZWRuYW1vZGU6bm9jYXBlcyE=</pre>
</dl>
- <h6>Registrarion of wss: scheme</h6>
+ <h6>Registration of wss: scheme</h6>
<dl>
@@ -71719,7 +71802,7 @@ Proxy-authorization: Basic ZWRuYW1vZGU6bm9jYXBlcyE=</pre>
port 815.</p>
- <h6>HTTP Upgrade keyword</h6>
+ <h6>Registration of the "WebSocket" HTTP Upgrade keyword</h6>
<dl>
@@ -72601,8 +72684,8 @@ interface <dfn>MessagePort</dfn> {
<h2 id="syntax"><dfn>The HTML syntax</dfn></h2>
- <p class="note">This section only describes the rules for <code
- title="">text/html</code> resources. Rules for XML resources are
+ <p class="note">This section only describes the rules for
+ <code>text/html</code> resources. Rules for XML resources are
discussed in the section below entitled "<span>The XHTML
syntax</span>".</p>
@@ -80744,7 +80827,7 @@ http://lxr.mozilla.org/seamonkey/search?string=nested
<hr>
<p>Data mining tools and other user agents that perform operations
- on <code title="">text/html</code> content without running scripts,
+ on <code>text/html</code> content without running scripts,
evaluating CSS or XPath expressions, or otherwise exposing the
resulting DOM to arbitrary content, may "support namespaces" by just
asserting that their DOM node analogues are in certain namespaces,
@@ -81184,9 +81267,8 @@ http://lxr.mozilla.org/seamonkey/search?string=nested
<h2><dfn id="xhtml">The XHTML syntax</dfn></h2>
<p class="note">This section only describes the rules for XML
- resources. Rules for <code title="">text/html</code> resources are
- discussed in the section above entitled "<span>The HTML
- syntax</span>".</p>
+ resources. Rules for <code>text/html</code> resources are discussed
+ in the section above entitled "<span>The HTML syntax</span>".</p>
<div class="impl">
@@ -85730,6 +85812,339 @@ time:empty { binding: <i title="">time</i>; }</pre>
+ <h2 class="no-num">IANA considerations</h2>
+
+ <!-- http://www.w3.org/2002/06/registering-mediatype.html -->
+
+ <p>This registration is for community review and will be submitted
+ to the IESG for review, approval, and registration with IANA.</p>
+
+ <h3><dfn><code>text/html</code></dfn></h3>
+
+ <!--
+ To: ietf-types@iana.org
+ Subject: Registration of media type text/html
+ -->
+
+ <!--
+ Obsoletes:
+ http://www.ietf.org/rfc/rfc2854
+ -->
+
+ <dl>
+ <dt>Type name:</dt>
+ <dd>text</dd>
+ <dt>Subtype name:</dt>
+ <dd>html</dd>
+ <dt>Required parameters:</dt>
+ <dd>No required parameters</dd>
+ <dt>Optional parameters:</dt>
+ <dd>
+ <dl>
+ <dt><code title="">charset</code></dt>
+ <dd>
+ <p>The <code title="">charset</code> parameter may be provided
+ to definitively specify the <span>document's character
+ encoding</span>, overriding any <span title="character encoding
+ declaration">character encoding declarations</span> in the
+ document. The parameter's value must be the name of the
+ character encoding used to serialize the file, must be a valid
+ character encoding name, and must be the preferred name for that
+ encoding. <a href="#refsIANACHARSET">[IANACHARSET]</a></p>
+ </dd>
+ </dl>
+ </dd>
+ <dt>Encoding considerations:</dt>
+ <dd>See the section on <span title="character encoding
+ declaration">character encoding declarations</span>.</dd>
+ <dt>Security considerations:</dt>
+ <dd>
+
+ <p>Entire novels have been written about the security
+ considerations that apply to HTML documents. Many are listed in
+ this document, to which the reader is referred for more
+ details. Some general concerns bear mentioning here, however:</p>
+
+ <p>HTML is scripted language, and has a large number of APIs (some
+ of which are described in this document). Script can expose the
+ user to potential risks of information leakage, credential
+ leakage, cross-site scripting attacks, cross-site request
+ forgeries, and a host of other problems. While the designs in this
+ specification are intended to be safe if implemented correctly, a
+ full implementation is a massive undertaking and, as with any
+ software, user agents are likely to have security bugs.</p>
+
+ <p>Even without scripting, there are specific features in HTML
+ which, for historical reasons, are required for broad
+ compatibility with legacy content but that expose the user to
+ unfortunate security problems. In particular, the <code>img</code>
+ element can be used in conjunction with some other features as a
+ way to effect a port scan from the user's location on the
+ Internet. This can expose local network topologies that the
+ attacker would otherwise not be able to determine.</p>
+
+ </dd>
+ <dt>Interoperability considerations:</dt>
+ <dd>
+ Rules for processing both conforming and non-conforming content
+ are defined in this specification.
+ </dd>
+ <dt>Published specification:</dt>
+ <dd>
+ This document is the relevant specification. Labeling a resource
+ with the <code>text/html</code> type asserts that the resource is
+ an <span title="HTML documents">HTML document</span> using
+ <span>the HTML syntax</span>.
+ </dd>
+ <dt>Applications that use this media type:</dt>
+ <dd>
+ Web browsers, tools for processing Web content, HTML authoring
+ tools, search engines, validators.
+ </dd>
+ <dt>Additional information:</dt>
+ <dd>
+ <dl>
+ <dt>Magic number(s):</dt>
+ <dd>No sequence of bytes can uniquely identify an HTML
+ document. More information on detecting HTML documents is
+ available in the Content-Type Processing Model specification. <a
+ href="#MIMESNIFF">[MIMESNIFF]</a></dd>
+ <dt>File extension(s):</dt>
+ <dd>"<code title="">html</code>" and "<code title="">htm</code>"
+ are commonly, but certainly not exclusively, used as the
+ extension for HTML documents.</dd>
+ <dt>Macintosh file type code(s):</dt>
+ <dd><code title="">TEXT</code></dd>
+ </dl>
+ </dd>
+ <dt>Person &amp; email address to contact for further information:</dt>
+ <dd>Ian Hickson &lt;ian@hixie.ch></dd>
+ <dt>Intended usage:</dt>
+ <dd>Common</dd>
+ <dt>Restrictions on usage:</dt>
+ <dd>No restrictions apply.</dd>
+ <dt>Author:</dt>
+ <dd>Ian Hickson &lt;ian@hixie.ch></dd>
+ <dt>Change controller:</dt>
+ <dd>Ian Hickson &lt;ian@hixie.ch></dd>
+ </dl>
+
+ <p>Fragment identifiers used with <code>text/html</code> resources
+ refer to <span>the indicated part of the document</span>.</p>
+
+
+ <h3><dfn><code>application/xhtml+xml</code></dfn></h3>
+
+ <!--
+ To: ietf-types@iana.org
+ Subject: Registration of media type application/xhtml+xml
+ -->
+
+ <!--
+ Obsoletes:
+ http://www.ietf.org/rfc/rfc3236.txt
+ -->
+
+ <dl>
+ <dt>Type name:</dt>
+ <dd>application</dd>
+ <dt>Subtype name:</dt>
+ <dd>xhtml+xml</dd>
+ <dt>Required parameters:</dt>
+ <dd>Same as for <code>application/xml</code> <a href="#refsRFC3023">[RFC3023]</a></dd>
+ <dt>Optional parameters:</dt>
+ <dd>Same as for <code>application/xml</code> <a href="#refsRFC3023">[RFC3023]</a></dd>
+ <dt>Encoding considerations:</dt>
+ <dd>Same as for <code>application/xml</code> <a href="#refsRFC3023">[RFC3023]</a></dd>
+ <dt>Security considerations:</dt>
+ <dd>Same as for <code>application/xml</code> <a href="#refsRFC3023">[RFC3023]</a></dd>
+ <dt>Interoperability considerations:</dt>
+ <dd>Same as for <code>application/xml</code> <a href="#refsRFC3023">[RFC3023]</a></dd>
+ <dt>Published specification:</dt>
+ <dd>
+ Labeling a resource with the <code>application/xhtml+xml</code>
+ type asserts that the resource is an XML document that likely has
+ a root element from the <span>HTML namespace</span>. As such, the
+ relevant specifications are the XML specification, the Namespaces
+ in XML specification, and this specification. <a
+ href="#refsXML">[XML]</a> <a href="#refsXMLNAMES">[XMLNAMES]</a>
+ </dd>
+ <dt>Applications that use this media type:</dt>
+ <dd>Same as for <code>application/xml</code> <a href="#refsRFC3023">[RFC3023]</a></dd>
+ <dt>Additional information:</dt>
+ <dd>
+ <dl>
+ <dt>Magic number(s):</dt>
+ <dd>Same as for <code>application/xml</code> <a href="#refsRFC3023">[RFC3023]</a></dd>
+ <dt>File extension(s):</dt>
+ <dd>"<code title="">xhtml</code>" and "<code title="">xht</code>"
+ are sometimes used as extensions for XML resources that have a
+ root element from the <span>HTML namespace</span>.</dd>
+ <dt>Macintosh file type code(s):</dt>
+ <dd><code title="">TEXT</code></dd>
+ </dl>
+ </dd>
+ <dt>Person &amp; email address to contact for further information:</dt>
+ <dd>Ian Hickson &lt;ian@hixie.ch></dd>
+ <dt>Intended usage:</dt>
+ <dd>Common</dd>
+ <dt>Restrictions on usage:</dt>
+ <dd>No restrictions apply.</dd>
+ <dt>Author:</dt>
+ <dd>Ian Hickson &lt;ian@hixie.ch></dd>
+ <dt>Change controller:</dt>
+ <dd>Ian Hickson &lt;ian@hixie.ch></dd>
+ </dl>
+
+ <p>Fragment identifiers used with <code>application/xhtml+xml</code>
+ resources have the same semantics as with any XML MIME type. <a
+ href="#refsRFC3023">[RFC3023]</a></p>
+
+
+ <h3><dfn><code>text/cache-manifest</code></dfn></h3>
+
+ <!--
+ To: ietf-types@iana.org
+ Subject: Registration of media type text/cache-manifest
+ -->
+
+ <dl>
+ <dt>Type name:</dt>
+ <dd>text</dd>
+ <dt>Subtype name:</dt>
+ <dd>cache-manifest</dd>
+ <dt>Required parameters:</dt>
+ <dd>No parameters</dd>
+ <dt>Optional parameters:</dt>
+ <dd>No parameters</dd>
+ <dt>Encoding considerations:</dt>
+ <dd>Always UTF-8.</dd>
+ <dt>Security considerations:</dt>
+ <dd>
+ <p>Cache manifests themselves pose no immediate risk unless
+ sensitive information is included within the
+ manifest. Implementations, however, are required to follow
+ specific rules when populating a cache based on a cache manifest,
+ to ensure that certain origin-based restrictions are
+ honored. Failure to correctly implement these rules can result in
+ information leakage, cross-site scripting attacks, and the
+ like.</p>
+ </dd>
+ <dt>Interoperability considerations:</dt>
+ <dd>
+ Rules for processing both conforming and non-conforming content
+ are defined in this specification.
+ </dd>
+ <dt>Published specification:</dt>
+ <dd>
+ This document is the relevant specification.
+ </dd>
+ <dt>Applications that use this media type:</dt>
+ <dd>
+ Web browsers.
+ </dd>
+ <dt>Additional information:</dt>
+ <dd>
+ <dl>
+ <dt>Magic number(s):</dt>
+ <dd>Cache manifests begin with the US-ASCII string "<code
+ title="">CACHE MANIFEST</code>", followed by either a U+0020
+ SPACE character, a U+0009 CHARACTER TABULATION (tab) character, a
+ U+000A LINE FEED (LF) character, or a U+000D CARRIAGE RETURN (CR)
+ character.</dd>
+ <dt>File extension(s):</dt>
+ <dd>"<code title="">manifest</code>"</dd>
+ <dt>Macintosh file type code(s):</dt>
+ <dd>No specific Macintosh file type codes are recommended for this type.</dd>
+ </dl>
+ </dd>
+ <dt>Person &amp; email address to contact for further information:</dt>
+ <dd>Ian Hickson &lt;ian@hixie.ch></dd>
+ <dt>Intended usage:</dt>
+ <dd>Common</dd>
+ <dt>Restrictions on usage:</dt>
+ <dd>No restrictions apply.</dd>
+ <dt>Author:</dt>
+ <dd>Ian Hickson &lt;ian@hixie.ch></dd>
+ <dt>Change controller:</dt>
+ <dd>Ian Hickson &lt;ian@hixie.ch></dd>
+ </dl>
+
+ <p>Fragment identifiers have no meaning with
+ <code>text/cache-manifest</code> resources.</p>
+
+
+ <h3><dfn><code>application/microdata+json</code></dfn></h3>
+
+ <!--
+ To: ietf-types@iana.org
+ Subject: Registration of media type application/microdata+json
+ -->
+
+ <dl>
+ <dt>Type name:</dt>
+ <dd>application</dd>
+ <dt>Subtype name:</dt>
+ <dd>microdata+json</dd>
+ <dt>Required parameters:</dt>
+ <dd>Same as for <code>application/json</code> <a href="#refsJSON">[JSON]</a></dd>
+ <dt>Optional parameters:</dt>
+ <dd>Same as for <code>application/json</code> <a href="#refsJSON">[JSON]</a></dd>
+ <dt>Encoding considerations:</dt>
+ <dd>Always UTF-8.</dd>
+ <dt>Security considerations:</dt>
+ <dd>Same as for <code>application/json</code> <a href="#refsJSON">[JSON]</a></dd>
+ <dt>Interoperability considerations:</dt>
+ <dd>Same as for <code>application/json</code> <a href="#refsJSON">[JSON]</a></dd>
+ <dt>Published specification:</dt>
+ <dd>
+
+ Labeling a resource with the
+ <code>application/microdata+json</code> type asserts that the
+ resource is a JSON text that consists of an object with a single
+ entry called "<code title="">items</code>" consisting of an array
+ of entries, each of which consists of an object with two entries,
+ one called "<code title="">type</code>" whose value is an array of
+ strings, and one called "<code title="">properties</code>" whose
+ value is an object whose entries each have a value consisting of
+ an array of either objects or strings, the objects being of the
+ same form as the objects in the aforementioned "<code
+ title="">items</code>" entry. As such, the relevant specifications
+ are the JSON specification and this specification. <a
+ href="#refsJSON">[JSON]</a>
+
+ </dd>
+ <dt>Applications that use this media type:</dt>
+ <dd>Same as for <code>application/json</code> <a href="#refsJSON">[JSON]</a></dd>
+ <dt>Additional information:</dt>
+ <dd>
+ <dl>
+ <dt>Magic number(s):</dt>
+ <dd>Same as for <code>application/json</code> <a href="#refsJSON">[JSON]</a></dd>
+ <dt>File extension(s):</dt>
+ <dd>Same as for <code>application/json</code> <a href="#refsJSON">[JSON]</a></dd>
+ <dt>Macintosh file type code(s):</dt>
+ <dd>Same as for <code>application/json</code> <a href="#refsJSON">[JSON]</a></dd>
+ </dl>
+ </dd>
+ <dt>Person &amp; email address to contact for further information:</dt>
+ <dd>Ian Hickson &lt;ian@hixie.ch></dd>
+ <dt>Intended usage:</dt>
+ <dd>Common</dd>
+ <dt>Restrictions on usage:</dt>
+ <dd>No restrictions apply.</dd>
+ <dt>Author:</dt>
+ <dd>Ian Hickson &lt;ian@hixie.ch></dd>
+ <dt>Change controller:</dt>
+ <dd>Ian Hickson &lt;ian@hixie.ch></dd>
+ </dl>
+
+ <p>Fragment identifiers used with
+ <code>application/microdata+json</code> resources have the same
+ semantics as when used with <code>application/json</code>. <a
+ href="#refsJSON">[JSON]</a></p>
+
+
<h2 class="no-num">Index</h2>
@@ -86535,7 +86950,6 @@ TODO (or delay):
field is not focused, the value is displayed differently. Seems
like this would also be useful e.g. for <output> or something so
you can display localised dates, etc.
- XXX * update text/html RFC
XXX * password and confirm password: can we have a way to do client-side
validation of this?
XXX * <input type="search">
@@ -86632,7 +87046,6 @@ TODO (or delay):
XXX * s/raise/throw/g
XXX * be clearer about arrays/lists/collections being zero-based
despite using the term "/index/th".
- XXX * update RFC 2854 (text/html reg)
-->
</body>

0 comments on commit cfcd13e

Please sign in to comment.
Something went wrong with that request. Please try again.