W3C home > Mailing lists > Public > public-html@w3.org > June 2012

[Bug 17579] New: Apply 'tag' (link type) to its nearest article or body element ancestor

From: <bugzilla@jessica.w3.org>
Date: Sat, 23 Jun 2012 00:10:25 +0000
To: public-html@w3.org
Message-ID: <bug-17579-2495@http.www.w3.org/Bugs/Public/>
https://www.w3.org/Bugs/Public/show_bug.cgi?id=17579

           Summary: Apply 'tag' (link type) to its nearest article or body
                    element ancestor
           Product: HTML WG
           Version: unspecified
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: normal
          Priority: P2
         Component: HTML5 spec (editor: Ian Hickson)
        AssignedTo: ian@hixie.ch
        ReportedBy: res-html@untief.org
         QAContact: public-html-bugzilla@w3.org
                CC: mike@w3.org, public-html-wg-issue-tracking@w3.org,
                    public-html@w3.org


(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:

&lt;section&gt;
  &lt;h1&gt;Recent articles&lt;/h1&gt;

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

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

&lt;/section&gt;

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.

-- 
Configure bugmail: https://www.w3.org/Bugs/Public/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
Received on Tuesday, 26 June 2012 13:07:48 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Tuesday, 26 June 2012 13:07:51 GMT