This is an archived snapshot of W3C's public bugzilla bug tracker, decommissioned in April 2019. Please see the home page for more details.

Bug 17579 - Apply 'tag' (link type) to its nearest article or body element ancestor
Summary: Apply 'tag' (link type) to its nearest article or body element ancestor
Status: RESOLVED WONTFIX
Alias: None
Product: HTML WG
Classification: Unclassified
Component: HTML5 spec (show other bugs)
Version: unspecified
Hardware: All All
: P2 normal
Target Milestone: ---
Assignee: This bug has no owner yet - up for the taking
QA Contact: HTML WG Bugzilla archive list
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-06-23 00:10 UTC by Stefan Götz
Modified: 2012-09-18 12:22 UTC (History)
5 users (show)

See Also:


Attachments

Description Stefan Götz 2012-06-23 00:10:21 UTC
(if it's undesirable for a link type definition to differ from 'a'/'area' to 'link', dump this issue)

The spec about the 'rel' keyword 'tag' states:
"The tag keyword indicates that the tag that the referenced document represents applies to the current document."

I think it would be useful if the tag (when linked with the 'a'/'area' element) applies to its nearest article or body element ancestor, instead (which is the case for the 'address' element, too).

Thereby a page listing several articles could make use of the 'tag' keyword:

<section>
  <h1>Recent articles</h1>

  <article>
    <h1>My first cooking lesson</h1>
    <p>… — <a href="/blog/cooking-lesson">Read more</a></p>
    <footer>Tagged with <a href="/tags/cooking" rel="tag">Cooking</a></footer>
  <article>

  <article>
    <h1>I scored two goals</h1>
    <p>… — <a href="/blog/two-goals">Read more</a></p>
    <footer>Tagged with <a href="/tags/football" rel="tag">Football</a></footer>
  <article>

</section>

With the current definition, the tags "Cooking" and "Football" apply to the whole page. 
With my proposed addition, the tag "Cooking" applies only to the first article snippet, the tag "Football" only to the second.
Comment 1 Stefan Götz 2012-06-23 00:14:12 UTC
(sorry, I messed up the example; another try)

<section>
  <h1>Recent articles</h1>

  <article>
    <h1>My first cooking lesson</h1>
    <p>… — <a href="/blog/cooking-lesson">Read more</a></p>
    <footer>Tagged with <a href="/tags/cooking" rel="tag">Cooking</a></footer>
  <article>

  <article>
    <h1>I scored two goals</h1>
    <p>… — <a href="/blog/two-goals">Read more</a></p>
    <footer>Tagged with <a href="/tags/football" rel="tag">Football</a></footer>
  <article>

</section>
Comment 2 contributor 2012-07-18 15:45:52 UTC
This bug was cloned to create bug 18024 as part of operation convergence.
Comment 3 Robin Berjon 2012-09-18 12:22:47 UTC
Same decision as https://www.w3.org/Bugs/Public/show_bug.cgi?id=18024