Skip to content

Commit

Permalink
[e] (0) try adding registration templates to the spec
Browse files Browse the repository at this point in the history
git-svn-id: http://svn.whatwg.org/webapps@5273 340c8d12-0b0e-0410-8428-c7bf67bfef74
  • Loading branch information
Hixie committed Aug 10, 2010
1 parent 00f9cbe commit cd22a8f
Show file tree
Hide file tree
Showing 3 changed files with 126 additions and 44 deletions.
67 changes: 46 additions & 21 deletions complete.html
Expand Up @@ -743,8 +743,8 @@ <h2 class="no-num no-toc" id=contents>Table of contents</h2>
<li><a href=#hyperlink-auditing><span class=secno>4.12.3.1 </span>Hyperlink auditing</a></ol></li>
<li><a href=#linkTypes><span class=secno>4.12.4 </span>Link types</a>
<ol>
<li><a href=#link-type-alternate><span class=secno>4.12.4.1 </span>Link type "<code>alternate</code>"</a></li>
<li><a href=#link-type-archives><span class=secno>4.12.4.2 </span>Link type "<code>archives</code>"</a></li>
<li><a href=#rel-alternate><span class=secno>4.12.4.1 </span>Link type "<code>alternate</code>"</a></li>
<li><a href=#rel-archives><span class=secno>4.12.4.2 </span>Link type "<code>archives</code>"</a></li>
<li><a href=#link-type-author><span class=secno>4.12.4.3 </span>Link type "<code>author</code>"</a></li>
<li><a href=#link-type-bookmark><span class=secno>4.12.4.4 </span>Link type "<code>bookmark</code>"</a></li>
<li><a href=#link-type-external><span class=secno>4.12.4.5 </span>Link type "<code>external</code>"</a></li>
Expand Down Expand Up @@ -50734,11 +50734,11 @@ <h4 id=linkTypes><span class=secno>4.12.4 </span>Link types</h4>
<th rowspan=2>Brief description</th>
<tr><th><code><a href=#the-link-element>link</a></code></th>
<th><code><a href=#the-a-element>a</a></code> and <code><a href=#the-area-element>area</a></code></th>
<tbody><tr><td><code title=rel-alternate><a href=#link-type-alternate>alternate</a></code></td> <!-- second most used <link rel> value -->
<tbody><tr><td><code title=rel-alternate><a href=#rel-alternate>alternate</a></code></td> <!-- second most used <link rel> value -->
<td><a href=#hyperlink>Hyperlink</a></td>
<td><a href=#hyperlink>Hyperlink</a></td>
<td>Gives alternate representations of the current document.</td>
<tr><td><code title=rel-archives><a href=#link-type-archives>archives</a></code></td>
<tr><td><code title=rel-archives><a href=#rel-archives>archives</a></code></td>
<td><a href=#hyperlink>Hyperlink</a></td>
<td><a href=#hyperlink>Hyperlink</a></td>
<td>Provides a link to a collection of records, documents, or other materials of historical interest.</td>
Expand Down Expand Up @@ -50844,9 +50844,9 @@ <h4 id=linkTypes><span class=secno>4.12.4 </span>Link types</h4>
-->


<h5 id=link-type-alternate><span class=secno>4.12.4.1 </span>Link type "<dfn title=rel-alternate><code>alternate</code></dfn>"</h5>
<h5 id=rel-alternate><span class=secno>4.12.4.1 </span>Link type "<dfn title=rel-alternate><code>alternate</code></dfn>"</h5>

<p>The <code title=rel-alternate><a href=#link-type-alternate>alternate</a></code> keyword may be
<p>The <code title=rel-alternate><a href=#rel-alternate>alternate</a></code> keyword may be
used with <code><a href=#the-link-element>link</a></code>, <code><a href=#the-a-element>a</a></code>, and <code><a href=#the-area-element>area</a></code>
elements.</p>

Expand All @@ -50858,15 +50858,15 @@ <h5 id=link-type-alternate><span class=secno>4.12.4.1 </span>Link type "<dfn tit

<dd>

<p>The <code title=rel-alternate><a href=#link-type-alternate>alternate</a></code> keyword
<p>The <code title=rel-alternate><a href=#rel-alternate>alternate</a></code> keyword
modifies the meaning of the <code title=rel-stylesheet><a href=#link-type-stylesheet>stylesheet</a></code> keyword in the way
described for that keyword. The <code title=rel-alternate><a href=#link-type-alternate>alternate</a></code> keyword does not create a
described for that keyword. The <code title=rel-alternate><a href=#rel-alternate>alternate</a></code> keyword does not create a
link of its own.</p>

</dd>


<dt>The <code title=rel-alternate><a href=#link-type-alternate>alternate</a></code> keyword is
<dt>The <code title=rel-alternate><a href=#rel-alternate>alternate</a></code> keyword is
used with the <code title=attr-hyperlink-type><a href=#attr-hyperlink-type>type</a></code>
attribute set to the value <code title="">application/rss+xml</code> or the value <code title="">application/atom+xml</code></dt>

Expand All @@ -50879,7 +50879,7 @@ <h5 id=link-type-alternate><span class=secno>4.12.4.1 </span>Link type "<dfn tit
<div class=impl>

<p>The first <code><a href=#the-link-element>link</a></code>, <code><a href=#the-a-element>a</a></code>, or <code><a href=#the-area-element>area</a></code>
element in the document (in tree order) with the <code title=rel-alternate><a href=#link-type-alternate>alternate</a></code> keyword used with the <code title=attr-hyperlink-type><a href=#attr-hyperlink-type>type</a></code> attribute set to the value
element in the document (in tree order) with the <code title=rel-alternate><a href=#rel-alternate>alternate</a></code> keyword used with the <code title=attr-hyperlink-type><a href=#attr-hyperlink-type>type</a></code> attribute set to the value
<code title="">application/rss+xml</code> or the value <code title="">application/atom+xml</code> must be treated as the default
syndication feed for the purposes of feed autodiscovery.</p>

Expand Down Expand Up @@ -50911,24 +50911,24 @@ <h5 id=link-type-alternate><span class=secno>4.12.4.1 </span>Link type "<dfn tit

<p>The nature of the referenced document is given by the <code title=attr-hyperlink-media><a href=#attr-hyperlink-media>media</a></code>, <code title=attr-hyperlink-hreflang><a href=#attr-hyperlink-hreflang>hreflang</a></code>, and <code title=attr-hyperlink-type><a href=#attr-hyperlink-type>type</a></code> attributes.</p>

<p>If the <code title=rel-alternate><a href=#link-type-alternate>alternate</a></code> keyword is
<p>If the <code title=rel-alternate><a href=#rel-alternate>alternate</a></code> keyword is
used with the <code title=attr-hyperlink-media><a href=#attr-hyperlink-media>media</a></code>
attribute, it indicates that the referenced document is intended for
use with the media specified.</p>

<p>If the <code title=rel-alternate><a href=#link-type-alternate>alternate</a></code> keyword is
<p>If the <code title=rel-alternate><a href=#rel-alternate>alternate</a></code> keyword is
used with the <code title=attr-hyperlink-hreflang><a href=#attr-hyperlink-hreflang>hreflang</a></code>
attribute, and that attribute's value differs from the <a href=#root-element>root
element</a>'s <a href=#language>language</a>, it indicates that the
referenced document is a translation.</p>

<p>If the <code title=rel-alternate><a href=#link-type-alternate>alternate</a></code> keyword is
<p>If the <code title=rel-alternate><a href=#rel-alternate>alternate</a></code> keyword is
used with the <code title=attr-hyperlink-type><a href=#attr-hyperlink-type>type</a></code>
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><a href=#attr-hyperlink-media>media</a></code>, <code title=attr-hyperlink-hreflang><a href=#attr-hyperlink-hreflang>hreflang</a></code>, and <code title=attr-hyperlink-type><a href=#attr-hyperlink-type>type</a></code> attributes can be combined
when specified with the <code title=rel-alternate><a href=#link-type-alternate>alternate</a></code>
when specified with the <code title=rel-alternate><a href=#rel-alternate>alternate</a></code>
keyword.</p>

<div class=example>
Expand All @@ -50941,20 +50941,33 @@ <h5 id=link-type-alternate><span class=secno>4.12.4.1 </span>Link type "<dfn tit
</div>

<p>This relationship is transitive &mdash; that is, if a document
links to two other documents with the link type "<code title=rel-alternate><a href=#link-type-alternate>alternate</a></code>", then, in addition to
links to two other documents with the link type "<code title=rel-alternate><a href=#rel-alternate>alternate</a></code>", then, in addition to
implying that those documents are alternative representations of
the first document, it is also implying that those two documents
are alternative representations of each other.</p>

</dd>

</dl><h5 id=link-type-archives><span class=secno>4.12.4.2 </span>Link type "<dfn title=rel-archives><code>archives</code></dfn>"</h5>
</dl><div class=bookkeeping id=rel-alternate-registration>

<p>The <code title=rel-archives><a href=#link-type-archives>archives</a></code> keyword may be
<p>This is the registration template for this value in the Link
Relations registry: <a href=#refsIANALINKTYPE>[IANALINKTYPE]</a></p>

<dl><dt>Relation Name:<dd>alternate
<dt>Description:<dd>Gives alternate representations of the current document, provides a link to a syndication feed, or modifies the meaning of other link relations, depending on context.
<dt>Reference:<dd>http://dev.w3.org/html5/spec/Overview.html#rel-alternate
<dt>Notes:<dd>(none)
<dt>Application Data:<dd>(none)
</dl></div>


<h5 id=rel-archives><span class=secno>4.12.4.2 </span>Link type "<dfn title=rel-archives><code>archives</code></dfn>"</h5>

<p>The <code title=rel-archives><a href=#rel-archives>archives</a></code> keyword may be
used with <code><a href=#the-link-element>link</a></code>, <code><a href=#the-a-element>a</a></code>, and <code><a href=#the-area-element>area</a></code>
elements. This keyword creates a <a href=#hyperlink>hyperlink</a>.</p>

<p>The <code title=rel-archives><a href=#link-type-archives>archives</a></code> keyword indicates
<p>The <code title=rel-archives><a href=#rel-archives>archives</a></code> keyword indicates
that the referenced document describes a collection of records,
documents, or other materials of historical interest.</p>

Expand All @@ -50965,10 +50978,22 @@ <h5 id=link-type-alternate><span class=secno>4.12.4.1 </span>Link type "<dfn tit

<p><strong>Synonyms</strong>: For historical reasons, user agents
must also treat the keyword "<code title="">archive</code>" like the
<code title=rel-archives><a href=#link-type-archives>archives</a></code> keyword.</p>
<code title=rel-archives><a href=#rel-archives>archives</a></code> keyword.</p>

</div>

<div class=bookkeeping id=rel-archives-registration>

<p>This is the registration template for this value in the Link
Relations registry: <a href=#refsIANALINKTYPE>[IANALINKTYPE]</a></p>

<dl><dt>Relation Name:<dd>archives
<dt>Description:<dd>Provides a link to a collection of records, documents, or other materials of historical interest.
<dt>Reference:<dd>http://www.whatwg.org/specs/web-apps/current-work/complete.html#rel-archives
<dt>Notes:<dd>(none)
<dt>Application Data:<dd>(none)
</dl></div>


<h5 id=link-type-author><span class=secno>4.12.4.3 </span>Link type "<dfn title=rel-author><code>author</code></dfn>"</h5>

Expand Down Expand Up @@ -51388,7 +51413,7 @@ <h5 id=link-type-stylesheet><span class=secno>4.12.4.14 </span>Link type "<dfn t
present the document. Exactly how the resource is to be processed
depends on the actual type of the resource.</p>

<p>If the <code title=rel-alternate><a href=#link-type-alternate>alternate</a></code> keyword is
<p>If the <code title=rel-alternate><a href=#rel-alternate>alternate</a></code> keyword is
also specified on the <code><a href=#the-link-element>link</a></code> element, then <dfn id=the-link-is-an-alternative-stylesheet>the link
is an alternative stylesheet</dfn>; in this case, the <code title=attr-title><a href=#the-title-attribute>title</a></code> attribute must be specified on the
<code><a href=#the-link-element>link</a></code> element, with a non-empty value.</p>
Expand Down Expand Up @@ -56484,7 +56509,7 @@ <h4 id=json><span class=secno>5.5.1 </span>JSON</h4>
tokens</var>.</li>

<li><p>If <var title="">list of tokens</var> contains both the
tokens <code title=rel-alternate><a href=#link-type-alternate>alternate</a></code> and <code title=rel-stylesheet><a href=#link-type-stylesheet>stylesheet</a></code>, then remove them both
tokens <code title=rel-alternate><a href=#rel-alternate>alternate</a></code> and <code title=rel-stylesheet><a href=#link-type-stylesheet>stylesheet</a></code>, then remove them both
and replace them with the single (uppercase) token <code title="">ALTERNATE-STYLESHEET</code>.</li>

<li>
Expand Down

0 comments on commit cd22a8f

Please sign in to comment.