<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body><ed xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:10:">WIP</ed><section><h1>The <code class="MIME" xml:lang="en">InternetMediaType</code> interface</h1><p><anchor-end xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:" a0:anchor="1" xmlns:a0="urn:x-suika-fam-cx:markup:suikawiki:0:9:">[1]</anchor-end> An object implementing the 
<dfn xml:lang="en"><code class="DOMi" xml:lang="en"><anchor xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:">InternetMediaType</anchor></code> interface</dfn>
represents a specification of an Internet Media Type,
as defined in RFC 2046 [RFC 2046].  This interface
provides a protocol independent way to access
to a specification of media type; how it it represented
in the wire format, e.g. plain old MIME, MIME as extended
by <anchor xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:">RFC 2231</anchor>, HTTP, and so on are not relevant
for the purpose of this interface.</p><section><h1>Stringify</h1><p><anchor-end xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:" a0:anchor="2" xmlns:a0="urn:x-suika-fam-cx:markup:suikawiki:0:9:">[2]</anchor-end> The <dfn xml:lang="en"><code class="DOMa" xml:lang="en"><anchor xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:">imtText</anchor></code> attribute</dfn>
is a textual representation of the Internet Media Type
represented by the object.</p><p>The type of this attribute is <code class="DOMi" xml:lang="en"><anchor xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:">DOMString</anchor></code>.
This attribute is read-write.</p><ed xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:10:">getter</ed><ed xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:10:">setter</ed><p>In the <anchor xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:">JavaScript</anchor> binding, the <code class="JS" xml:lang="en"><anchor xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:">toString</anchor></code>
method <anchor xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:"><strong xmlns="http://www.w3.org/1999/xhtml">MUST</strong></anchor> return the same value as
the <code class="DOMa" xml:lang="en"><anchor xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:">imtType</anchor></code> attribute.</p></section><section><h1>Components</h1><p><anchor-end xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:" a0:anchor="3" xmlns:a0="urn:x-suika-fam-cx:markup:suikawiki:0:9:">[3]</anchor-end> The <dfn xml:lang="en"><code class="DOMa" xml:lang="en"><anchor xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:">topLevelType</anchor></code> attribute</dfn>
is the top-level media type of the object.</p><p>The type of this attribute is <code class="DOMi" xml:lang="en"><anchor xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:">DOMString</anchor></code>.</p><ed xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:10:"></ed></section></section></body></html>