Short URL: http://html5.org/r/485
| SVN | Bug | Comment | Time (UTC) |
|---|---|---|---|
| 485 | clean up attributes that specify MIME types. add more stuff for rel=alternate. | 2007-01-19 00:40 |
Index: source
===================================================================
--- source (revision 484)
+++ source (revision 485)
@@ -5469,8 +5469,6 @@
the <span title="attr-hyperlink-hreflang"><code>hreflang</code>
attribute on hyperlink elements</span>.</p>
- <!-- XXX type attribute parsing and semantics should be factored out
- as much as possible into a microsyntax -->
<p>The <dfn title="attr-link-type"><code>type</code></dfn> attribute
gives the MIME type of the linked resource. It is purely advisory.
The value must be a valid MIME type, optionally with parameters. <a
@@ -5808,10 +5806,9 @@
one of several inputs to the <span>styling processing
model</span>.</p>
- <!-- XXX again, extract type out as a microsyntax -->
<p>If the <dfn title="attr-style-type"><code>type</code></dfn>
- attribute is given, it must contain a MIME type, optionally with
- parameters, that designates a styling language. <a
+ attribute is given, it must contain a valid MIME type, optionally
+ with parameters, that designates a styling language. <a
href="#refsRFC2046">[RFC2046]</a> If the attribute is absent, the
type defaults to <code>text/css</code>. <a
href="#refsRFC2318">[RFC2138]</a></p>
@@ -9556,8 +9553,6 @@
user agent must use a default handler for the content. (This default
could be as simple as saying "Unsupported Format", of course.)</p>
- <!-- XXX we really should factor out the common parts of type
- handling; at least the parsing and handling of parameters -->
<p>The <dfn title="attr-embed-type"><code>type</code></dfn>
attribute, if present, gives the MIME type of the linked resource.
The value must be a valid MIME type, optionally with parameters. <a
@@ -9568,10 +9563,10 @@
<ol>
- <li>If the element has a <code title="attr-link-type">type</code>
+ <li>If the element has a <code title="attr-embed-type">type</code>
attribute, then the value of the <code
- title="attr-link-type">type</code> attribute is the <span>content's
- type</span>.</li>
+ title="attr-embed-type">type</code> attribute is the
+ <span>content's type</span>.</li>
<li>Otherwise, if the specified resource has <span
title="Content-Type">explicit Content-Type metadata</span>, then
@@ -13080,9 +13075,10 @@
<li>
- <p class="big-issue">How to handle the <code title="">type</code>
- and <code title="">language</code> attributes should be defined
- here, probably with reference to the next section.</p>
+ <p class="big-issue">How to handle the <code
+ title="attr-script-type">type</code> and <code
+ title="attr-script-language">language</code> attributes should be
+ defined here, probably with reference to the next section.</p>
</li>
@@ -17180,14 +17176,30 @@
<p>If the <code title="rel-alternate">alternate</code> keyword is
used with the <code title="attr-hyperlink-hreflang">hreflang</code>
- attribute, it indicates that the referenced document is a
- translation.</p>
+ attribute, and that attribute's value differs from the <span>root
+ element</span>'s <span>language</span>, it indicates that the
+ referenced document is a translation.</p>
<p>If the <code title="rel-alternate">alternate</code> keyword is
used with the <code title="attr-hyperlink-type">type</code>
- attribute, it indicates that the referenced document is a reformulation
- of the current document in the specified format.</p>
+ attribute, it indicates that the referenced document is a
+ reformulation of the current document in the specified format.</p>
+ <p>The <code title="attr-hyperlink-media">media</code>, <code
+ title="attr-hyperlink-hreflang">hreflang</code>, and <code
+ title="attr-hyperlink-type">type</code> attributes can be combined
+ when specified with the <code title="rel-alternate">alternate</code>
+ keyword.</p>
+
+ <div class="example">
+
+ <p>For example, the following link is a French translation that
+ uses the PDF format:</p>
+
+ <pre><link rel=alternate type=application/pdf hreflang=fr href=manual-fr></pre>
+
+ </div>
+
<p>If the <code title="rel-alternate">alternate</code> keyword is
used with the <code title="attr-hyperlink-type">type</code>
attribute set to the value <code title="">application/rss+xml</code>