HTML Standard Tracker

Filter

File a bug

SVNBugCommentTime (UTC)
485clean up attributes that specify MIME types. add more stuff for rel=alternate.2007-01-19 00:40
@@ -5462,22 +5462,20 @@ class="main"> or <div class="content">. Why do we also need a body?
   <p id="default-media">The default, if the <code
   title="attr-link-media">media</code> attribute is omitted, is
   <code>all</code>, meaning that by default links apply to all
   media.</p>
 
   <p>The <dfn title="attr-link-hreflang"><code>hreflang</code></dfn>
   attribute on the <code>link</code> element has the same semantics as
   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
   href="#refsRFC2046">[RFC2046]</a></p>
 
   <p>For <span title="external resource link">external resource
   links</span>, user agents may use the type given in this attribute
   to decide whether or not to consider using the resource at all. If
   the UA does not support the given MIME type for the given link
   relationship, then the UA may opt not to download and apply the
@@ -5801,24 +5799,23 @@ class="main"> or <div class="content">. Why do we also need a body?
     by this element, the <span>styling processing model</span> defines
     how. <a href="#refsCSSOM">[CSSOM]</a></p>
    </dd>
   </dl>
 
   <p>The <code>style</code> element allows authors to embed style
   information in their documents. The <code>style</code> element is
   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>
 
   <!-- XXX this is the second time we have this paragraph here... -->
   <p>When examining types to determine if they support the language,
   user agents must not ignore unknown MIME parameters &mdash; types
   with unknown parameters must be assumed to be unsupported.</p>
 
   <p>The <dfn title="attr-style-media"><code>media</code></dfn>
@@ -9549,36 +9546,34 @@ brighter. A &lt;b>rat&lt;/b> scurries past the corner wall.&lt;/p></pre>
   mechanism such as the Netscape Plugin API; others may use remote
   content convertors or have built-in support for certain types. <a
   href="#refsNPAPI">[NPAPI]</a></p>
 
   <p>The <code>embed</code> element has no <span>fallback
   content</span>. If the user agent can't display the specified
   resource, e.g. because the given type is not supported, then the
   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
   href="#refsRFC2046">[RFC2046]</a></p>
 
   <p>The <dfn title="concept-embed-type">type of the content</dfn>
   being embedded is defined as follows:</p>
 
   <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
    that is the <span>content's type</span>.</li>
 
    <li>Otherwise, the content has no type and there can be no
    appropriate handler for it.</li>
 
   </ol>
 
@@ -13073,23 +13068,24 @@ interface <dfn>ImageData</dfn> {
 
    <li>
 
     <p>The user agent must set the element's <span>"already
     executed"</span> flag.</p>
 
    </li>
 
    <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>
 
    <li>
 
     <p>If the element has a <code title="attr-script-src">src</code>
     attribute, then a load for the specified content must be
     started.</p>
 
     <p class="note">Later, once the load has completed, the user agent
@@ -17173,27 +17169,43 @@ mpt says:
   title="attr-hyperlink-hreflang">hreflang</code>, and <code
   title="attr-hyperlink-type">type</code> attributes.</p>
 
   <p>If the <code title="rel-alternate">alternate</code> keyword is
   used with the <code title="attr-hyperlink-media">media</code>
   attribute, it indicates that the referenced document is intended for use
   with the media specified.</p>
 
   <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>&lt;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>
   or the value <code title="">application/atom+xml</code>, then the
   user agent must treat the link as it would if it had the <code
   title="rel-feed">feed</code> keyword specified as well.</p>
 
   <p>The <code title="rel-alternate">alternate</code> link
   relationship is transitive &mdash; that is, if a document links to

|