<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://www.w3.org/Bugs/Public/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.4"
          urlbase="https://www.w3.org/Bugs/Public/"
          
          maintainer="sysbot+bugzilla@w3.org"
>

    <bug>
          <bug_id>11715</bug_id>
          
          <creation_ts>2011-01-10 13:56:09 +0000</creation_ts>
          <short_desc>Map HTML &lt;article&gt;&lt;a rel=author&gt; to Atom &lt;entry&gt;&lt;author&gt;</short_desc>
          <delta_ts>2013-03-08 23:42:14 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>WHATWG</product>
          <component>HTML</component>
          <version>unspecified</version>
          <rep_platform>Other</rep_platform>
          <op_sys>other</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>WONTFIX</resolution>
          
          
          <bug_file_loc>http://www.whatwg.org/specs/web-apps/current-work/#atom</bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P3</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>Unsorted</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter>contributor</reporter>
          <assigned_to name="Ian &apos;Hixie&apos; Hickson">ian</assigned_to>
          <cc>eoconnor</cc>
    
    <cc>ian</cc>
    
    <cc>mike</cc>
    
    <cc>philipj</cc>
    
    <cc>robin</cc>
          
          <qa_contact>contributor</qa_contact>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>43989</commentid>
    <comment_count>0</comment_count>
    <who name="">contributor</who>
    <bug_when>2011-01-10 13:56:09 +0000</bug_when>
    <thetext>Specification: http://www.whatwg.org/specs/web-apps/current-work/multipage/links.html
Section: http://www.whatwg.org/specs/web-apps/current-work/complete.html#atom

Comment:
Map HTML &lt;article&gt;&lt;a rel=author&gt; to Atom &lt;entry&gt;&lt;author&gt;

Posted from: 81.234.240.182 by philip@foolip.org</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>43990</commentid>
    <comment_count>1</comment_count>
    <who name="Philip Jägenstedt">philipj</who>
    <bug_when>2011-01-10 14:11:19 +0000</bug_when>
    <thetext>After implementing most of &lt;http://www.whatwg.org/specs/web-apps/current-work/multipage/links.html#extracting-atom&gt; I found this to be a useful addition.

Just using &lt;meta name=author&gt; for feed-wide author isn&apos;t as awesome as it could be if you&apos;re converting a planet-like page with many authors.

rel=author is already suitable defined, so this HTML

&lt;article&gt;
&lt;header&gt;
&lt;h1&gt;Title&lt;/h1&gt;
by &lt;a href=&quot;http://foolip.org&quot; rel=author&gt;Philip Jägenstedt&lt;/a&gt;
&lt;/header&gt;
Bla bla bla...
&lt;/article&gt;

would give something like the following Atom:

&lt;entry xml:base=&quot;...&quot;&gt;
&lt;title type=&quot;html&quot;&gt;Title&lt;/title&gt;
&lt;author&gt;&lt;name&gt;Philip Jägenstedt&lt;/name&gt;&lt;uri&gt;http://foolip.org/&lt;/uri&gt;&lt;/author&gt;
&lt;content type=&quot;html&quot;&gt;
Bla bla bla...
&lt;/content&gt;
&lt;/feed&gt;

(I&apos;m using the plain-text textContent of &lt;a&gt; as &lt;author&gt;&lt;name&gt;.)

This has the benefit that you can get both a URL and a name for an author, which you can&apos;t do with a combination of &lt;meta&gt; and &lt;link&gt; since you can&apos;t be sure that it&apos;s for the same author.

With this change, it might be worth making the algorithm fail if there&apos;s not enough &lt;author&gt; sprinkled around to make it valid Atom, but that&apos;s another issue.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>43991</commentid>
    <comment_count>2</comment_count>
    <who name="Philip Jägenstedt">philipj</who>
    <bug_when>2011-01-10 14:25:26 +0000</bug_when>
    <thetext>Uh, and maybe some magic to turn mailto: URLs into &lt;author&gt;&lt;email&gt;, although http://feedvalidator.org/ doesn&apos;t complain about &lt;uri&gt;mailto:...&lt;/uri&gt;.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>45240</commentid>
    <comment_count>3</comment_count>
    <who name="Ian &apos;Hixie&apos; Hickson">ian</who>
    <bug_when>2011-02-08 02:08:12 +0000</bug_when>
    <thetext>The reason I didn&apos;t do that is that it&apos;s perfectly valid to put content other than the author&apos;s name in a link with rel=author, so we can&apos;t really grab the name that way.

I&apos;m marking this LATER, so that I look at it again in a while. If people are using this algorithm, then it would make sense to handle this kind of thing more carefully in a future revision.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>45248</commentid>
    <comment_count>4</comment_count>
    <who name="Edward O&apos;Connor">hober0</who>
    <bug_when>2011-02-08 04:17:56 +0000</bug_when>
    <thetext>You could at least map &lt;article&gt;&lt;a rel=author href=&quot;...&quot;&gt; to &lt;entry&gt;&lt;author&gt;&lt;uri&gt;...</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>84146</commentid>
    <comment_count>5</comment_count>
    <who name="Ian &apos;Hixie&apos; Hickson">ian</who>
    <bug_when>2013-03-08 23:42:14 +0000</bug_when>
    <thetext>We dropped the whole Atom thing, if I&apos;m not mistaken.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>