[uf-discuss] Re: Question on intent for hcard/hcal

Tantek Ç elik tantek at cs.stanford.edu
Sun Feb 26 13:38:50 PST 2006

Hi Paresh,

Nice to meet you.

On 2/26/06 10:14 AM, "Paresh Suthar" <Paresh.Suthar at microsoft.com> wrote:

> Hello Tantek - I have emailed this question to the micro-formats list and have
> not seen it actually show up in the archive list,

The list only accepts messages from precisely the address you used to sign
up.  Make sure you are signed up with Paresh.Suthar at microsoft.com.

I'm assuming since you emailed this question to the list originally, that it
is ok to cc this list with this response so that your question and the
answers are archived properly.

> so I wanted to ping you
> directly.  If there is a better venue, please let me know, as I do not wish to
> take up too much of your time.

The other place that is good to ask microformat questions is the irc channel
#microformats on irc.freenod.net.  Also documented here:


> From: Paresh Suthar
> Sent: Sunday, February 26, 2006 9:47 AM
> To: 'microformats-discuss at microformats.org'
> Subject: Question on intent for hcard/hcal
> I noticed that there are times where the "title" attribute is used to
> represent data in one form, and the CDATA section is used to represent the
> data in another form.  For example:

So far this is almost always only for datetimes and date related fields like

> <span class="vevent">
> <a class="url" href="http://www.web2con.com/">
> <span class="summary">Web 2.0 Conference</span>:
> <abbr class="dtstart" title="2005-10-05">October 5</abbr>-
> <abbr class="dtend" title="2005-10-08">7</abbr>,
> at the <span class="location">Argent Hotel, San Francisco, CA</span>
> </a>
> </span>
> Questions:
> 1) Is it safe to assume the convention that if a "title" attribute exists for
> an entry, that it is the raw/original data
> 2) If no "title" attribute exists for an entry, is it safe to assume the
> convention that the CDATA is the raw/original data

No.  This convention is only for <abbr> elements.

E.g. <span title="foo">bar</span> is still "bar", not "foo".

See hcard-parsing for details on this and other "special" treatments of


(N.B., I have a to-do item to write up hcalendar-parsing based on
hcard-parsing, but for the moment, you can use hcard-parsing as a very good
set of guidelines for hCalendar as well).

> 3) Is it valid and/or in the spirit of microformats to have a "title"
> attribute but no CDATA content?

It can be valid yes, but certainly not in the spirit of microformats, as we
very much emphasize *visible* data, and thus the CDATA should have some
visible content.

Thanks for your questions Paresh, and I hope these answers help.  Please
feel free to add this Q&A to the microformats FAQ on the wiki if you think
someone else might find it useful as well.



More information about the microformats-discuss mailing list