[uf-discuss] Author in hAtom

David Janes davidjanes at blogmatrix.com
Thu Feb 26 15:14:06 PST 2009


On Thu, Feb 26, 2009 at 5:59 PM, Jeremy Keith <jeremy at adactio.com> wrote:
> I have a question about the "author" property in hAtom...
>
> The spec says that "author" is modelled on the Atom AUTHOR element (
> http://atomenabled.org/developers/syndication/#requiredFeedElements ) and
> must be encoded as an hCard.
>
> Now, here's an example of a perfectly valid hCard:
>
> <p class="vcard">Hello, my name is <span class="fn">Jeremy Keith</span>.</p>
>
> So my question is: is this valid for hAtom?:
>
> <p class="author vcard">Hello, my name is <span class="fn">Jeremy
> Keith</span>.</p>
>
> The reason I ask is that all of the hAtom examples (
> http://microformats.org/wiki/hatom-examples ) show the "author" property
> *only* containing the n/fn property of an hCard, e.g.:
>
> <p>Hello, my name is <span class="vcard author"><span class="fn">Jeremy
> Keith</span></span>.</p>
>
> So, is the spec correct and it's just that I'm being slightly misled by the
> examples?
>
> Thanks in advance,
>
> Jeremy

Interesting question. I believe the intention was that the expanded
form would be OK, not because of a non-semantic head or tail within
the hCard, but because there could be non-semantic text in the middle,
e.g.

Written by <vcard><fn>David Janes</fn> who's blogging at
<url>http://code.davidjanes.com</url></vcard>

Regards, etc...


-- 
David Janes
Mercenary Programmer
http://code.davidjanes.com



More information about the microformats-discuss mailing list