Skip to content
Browse files

rel=external, rel=feed

git-svn-id: http://svn.whatwg.org/webapps@335 340c8d12-0b0e-0410-8428-c7bf67bfef74
  • Loading branch information...
1 parent 821b65a commit 2b5f67c95202e8fd17b5e2b0fa797c8916bf6a46 @Hixie Hixie committed
Showing with 107 additions and 7 deletions.
  1. +63 −7 index
  2. +44 −0 source
View
70 index
@@ -698,7 +698,14 @@
type "<dfn id=contact
title=rel-contact><code>contact</code></dfn>"</a>
- <li><a href="#other"><span class=secno>4.5.3.6. </span>Other link
+ <li><a href="#link-type4"><span class=secno>4.5.3.6. </span>Link
+ type "<dfn id=external
+ title=rel-external><code>external</code></dfn>"</a>
+
+ <li><a href="#link-type5"><span class=secno>4.5.3.7. </span>Link
+ type "<dfn id=feed title=rel-feed><code>feed</code></dfn>"</a>
+
+ <li><a href="#other"><span class=secno>4.5.3.8. </span>Other link
types</a>
</ul>
@@ -14864,7 +14871,7 @@ XXX selection ranges -->
<td>Gives a link to contact information for the current document.
<tr>
- <td><code title=rel-external>external</code></td>
+ <td><code title=rel-external><a href="#external0">external</a></code></td>
<!-- fifth and sixth most used <a rel> value (sixth is "external nofollow") -->
<td><em>not allowed</em>
@@ -14875,7 +14882,7 @@ XXX selection ranges -->
the current document.
<tr>
- <td><code title=rel-feed>feed</code>
+ <td><code title=rel-feed><a href="#feed0">feed</a></code>
<td><a href="#hyperlink0" title="hyperlink link">Hyperlink</a>
@@ -15106,8 +15113,8 @@ XXX selection ranges -->
title=attr-hyperlink-type><a href="#type14">type</a></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.
+ link as it would if it had the <code title=rel-feed><a
+ href="#feed0">feed</a></code> keyword specified as well.
<h5 id=link-type0><span class=secno>4.5.3.2. </span>Link type "<dfn
id=archives0 title=rel-archives><code>archives</code></dfn>"</h5>
@@ -15226,7 +15233,56 @@ XXX selection ranges -->
<p>For <code><a href="#link0">link</a></code> elements, the <code
title=rel-contact><a href="#contact0">contact</a></code> keyword indicates
that the referenced document provides further contact information for the
- page as a whole.</p>
+ page as a whole.
+
+ <h5 id=link-type4><span class=secno>4.5.3.6. </span>Link type "<dfn
+ id=external0 title=rel-external><code>external</code></dfn>"</h5>
+
+ <p>The <code title=rel-external><a href="#external0">external</a></code>
+ keyword may be used with <code><a href="#a0">a</a></code> and <code><a
+ href="#area0">area</a></code> elements.
+
+ <p>The <code title=rel-external><a href="#external0">external</a></code>
+ keyword indicates that the link is leading to a document that is not part
+ of the site that the current document forms a part of.
+
+ <h5 id=link-type5><span class=secno>4.5.3.7. </span>Link type "<dfn
+ id=feed0 title=rel-feed><code>feed</code></dfn>"</h5>
+
+ <p>The <code title=rel-feed><a href="#feed0">feed</a></code> keyword may be
+ used with <code><a href="#link0">link</a></code>, <code><a
+ href="#a0">a</a></code>, and <code><a href="#area0">area</a></code>
+ elements. For <code><a href="#link0">link</a></code> elements, it creates
+ a <a href="#hyperlink0" title="hyperlink link">hyperlink</a>.
+
+ <p>The <code title=rel-feed><a href="#feed0">feed</a></code> keyword
+ indicates that the referenced document is a syndication feed. If the <code
+ title=rel-alternate><a href="#alternate0">alternate</a></code> link type
+ is also specified, then the feed is specifically the feed for the current
+ document; otherwise, the feed is just a syndication feed, not necessarily
+ associated with a particular Web page.
+
+ <p class=note>The <code title=rel-feed><a href="#feed0">feed</a></code>
+ keyword is implied by the <code title=rel-alternate><a
+ href="#alternate0">alternate</a></code> link type in certain cases (q.v.).
+
+ <div class=example>
+ <p>The following two <code><a href="#link0">link</a></code> elements are
+ equivalent: both give the syndication feed for the current page:</p>
+
+ <pre>&lt;link rel="alternate" type="application/atom+xml" href="data.xml"></pre>
+
+ <pre>&lt;link rel="feed alternate" href="data.xml"></pre>
+
+ <p>The following extract offers various different syndication feeds:</p>
+
+ <pre> &lt;p>You can access the planets database using Atom feeds:&lt;/p>
+ &lt;ul>
+ &lt;li>&lt;a href="recently-visited-planets.xml" rel="feed">Recently Visited Planets&lt;/a>&lt;/li>
+ &lt;li>&lt;a href="known-bad-planets.xml" rel="feed">Known Bad Planets&lt;/a>&lt;/li>
+ &lt;li>&lt;a href="unexplored-planets.xml" rel="feed">Unexplored Planets&lt;/a>&lt;/li>
+ &lt;/ul></pre>
+ </div>
<!--
this section defines whether a particular link type is an external resource or a hyperlink
@@ -15285,7 +15341,7 @@ disallow: http://microformats.org/wiki/rel-enclosure
-->
- <h5 id=other><span class=secno>4.5.3.6. </span>Other link types</h5>
+ <h5 id=other><span class=secno>4.5.3.8. </span>Other link types</h5>
<p class=big-issue>Address extensibility.
View
44 source
@@ -13451,6 +13451,50 @@ XXX selection ranges -->
page as a whole.</p>
+ <h5>Link type "<dfn title="rel-external"><code>external</code></dfn>"</h5>
+
+ <p>The <code title="rel-external">external</code> keyword may be
+ used with <code>a</code> and <code>area</code> elements.</p>
+
+ <p>The <code title="rel-external">external</code> keyword indicates
+ that the link is leading to a document that is not part of the site
+ that the current document forms a part of.</p>
+
+
+ <h5>Link type "<dfn title="rel-feed"><code>feed</code></dfn>"</h5>
+
+ <p>The <code title="rel-feed">feed</code> keyword may be used with
+ <code>link</code>, <code>a</code>, and <code>area</code>
+ elements. For <code>link</code> elements, it creates a <span
+ title="hyperlink link">hyperlink</span>.</p>
+
+ <p>The <code title="rel-feed">feed</code> keyword indicates that the
+ referenced document is a syndication feed. If the <code
+ title="rel-alternate">alternate</code> link type is also specified,
+ then the feed is specifically the feed for the current document;
+ otherwise, the feed is just a syndication feed, not necessarily
+ associated with a particular Web page.</p>
+
+ <p class="note">The <code title="rel-feed">feed</code> keyword is
+ implied by the <code title="rel-alternate">alternate</code> link
+ type in certain cases (q.v.).</p>
+
+ <div class="example">
+ <p>The following two <code>link</code> elements are equivalent:
+ both give the syndication feed for the current page:</p>
+ <pre>&lt;link rel="alternate" type="application/atom+xml" href="data.xml"></pre>
+ <pre>&lt;link rel="feed alternate" href="data.xml"></pre>
+ <p>The following extract offers various different syndication
+ feeds:</p>
+ <pre> &lt;p>You can access the planets database using Atom feeds:&lt;/p>
+ &lt;ul>
+ &lt;li>&lt;a href="recently-visited-planets.xml" rel="feed">Recently Visited Planets&lt;/a>&lt;/li>
+ &lt;li>&lt;a href="known-bad-planets.xml" rel="feed">Known Bad Planets&lt;/a>&lt;/li>
+ &lt;li>&lt;a href="unexplored-planets.xml" rel="feed">Unexplored Planets&lt;/a>&lt;/li>
+ &lt;/ul></pre>
+ </div>
+
+
<!--
this section defines whether a particular link type is an external resource or a hyperlink

0 comments on commit 2b5f67c

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