Skip to content

Commit a021607

Browse files
committed
Expand on feed autodiscovery, and make it only apply to <link>
Fixes #268.
1 parent 1cc7e5d commit a021607

File tree

1 file changed

+22
-11
lines changed

1 file changed

+22
-11
lines changed

source

Lines changed: 22 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -22249,26 +22249,37 @@ interface <dfn>HTMLHyperlinkElementUtils</dfn> {
2224922249

2225022250
<div w-nodev>
2225122251

22252-
<p>The first <code>link</code> or <code>a</code> element in the document (in <span>tree
22253-
order</span>) with the <code data-x="rel-alternate">alternate</code> keyword used with the <code
22254-
data-x="attr-hyperlink-type">type</code> attribute set to the value <code
22255-
data-x="">application/rss+xml</code> or the value <code data-x="">application/atom+xml</code>
22256-
must be treated as the default syndication feed for the purposes of feed autodiscovery.</p>
22252+
<p>For the purposes of feed autodiscovery, user agents should consider all <code>link</code>
22253+
elements in the document with the <code data-x="rel-alternate">alternate</code> keyword used and
22254+
with their <code data-x="attr-hyperlink-type">type</code> attribute set to the value <code
22255+
data-x="">application/rss+xml</code> or the value <code
22256+
data-x="">application/atom+xml</code>. If the user agent has the concept of a default
22257+
syndication feed, the first such element (in <span>tree order</span>) should be used as the
22258+
default.</p>
22259+
22260+
</div>
2225722261

2225822262
<div class="example">
22259-
<p>The following <code>link</code> element gives the syndication
22260-
feed for the current page:</p>
22261-
<pre>&lt;link rel="alternate" type="application/atom+xml" href="data.xml"></pre>
22262-
<p>The following extract offers various different syndication
22263-
feeds:</p>
22263+
<p>The following <code>link</code> elements give syndication feeds for a blog:</p>
22264+
22265+
<pre>&lt;link rel="alternate" type="application/atom+xml" href="posts.xml" title="Cool Stuff Blog">
22266+
&lt;link rel="alternate" type="application/atom+xml" href="posts.xml?category=robots" title="Cool Stuff Blog: robots category">
22267+
&lt;link rel="alternate" type="application/atom+xml" href="comments.xml" title="Cool Stuff Blog: Comments"></pre>
22268+
22269+
<p>Such <code>link</code> elements would be used by user agents engaged in feed autodiscovery,
22270+
with the first being the default (where applicable).</p>
22271+
22272+
<p>The following example offers various different syndication feeds to the user, using
22273+
<code>a</code> elements:</p>
22274+
2226422275
<pre>&lt;p>You can access the planets database using Atom feeds:&lt;/p>
2226522276
&lt;ul>
2226622277
&lt;li>&lt;a href="recently-visited-planets.xml" rel="alternate" type="application/atom+xml">Recently Visited Planets&lt;/a>&lt;/li>
2226722278
&lt;li>&lt;a href="known-bad-planets.xml" rel="alternate" type="application/atom+xml">Known Bad Planets&lt;/a>&lt;/li>
2226822279
&lt;li>&lt;a href="unexplored-planets.xml" rel="alternate" type="application/atom+xml">Unexplored Planets&lt;/a>&lt;/li>
2226922280
&lt;/ul></pre>
22270-
</div>
2227122281

22282+
<p>These links would not be used in feed autodiscovery.</p>
2227222283
</div>
2227322284

2227422285
</dd>

0 commit comments

Comments
 (0)