hCard specification confusion

Wednesday, 8 August 2007, 12:02

Anyone any good with hCard microformats?

I've been adding info to my blog for fun, but I'm running into issues (when testing exporting it as a contact file through Operator and opening with Outlook): in a couple of cases it is incorrectly getting its data from the tag contents instead of the title attribute. (I'm using titles simply to make the human-readable part flow a bit more nicely.)

Code:


<address class="vcard">Contents &copy; <a class="url" href="http://hellhound.net/"><abbr class="fn" title="Herm Baskerville">Herm</abbr> '<span class="nickname">Mutt</span>' Baskerville</a></span>. <span class="org">Mutt <span class="title role" title="admin">administrates</span> <a class="organization-name" href="http://profusion.hellhound.net/" title="Profusion">Profusion writing and roleplay</a></span>.</address>


produces (edit: following code removed while I test stuff):



It's correctly picking up Herm1 Baskerville as the full name. (The abbreviation tag with title is apparently best practice, better than classing separate words [plus a space] as name-parts, and clearly it does make more semantic sense.)

It is incorrectly picking up "Profusion writing and roleplay" for the organisation (instead of "Profusion") and "administrates" (instead of "admin") for the position.

Now, the title attribute is meant to overrule tag contents, unless I misunderstood something; perhaps it doesn't count in these specific cases? And no I'm not sure I really want to include all this info on the page, but I'm trying things out, godsdammit. :)

edit: Responses and interesting stuff to be found on the LJ mirror of this entry

1 Less confusing than "Herman or Hermia, depending on my mood", right?

Filed as: HHnet, coding, gendaargh, microformats, personal, web | 0 pawprints »

Freegan, Dane and finless Yangtze mini-trawl

Wednesday, 8 August 2007, 11:28

Well, we've done it. We've wiped out our first cetacean. HOOMAN PRIDE WOOT WOOT


(Video) A Great Dane in Manchester has recently given birth to 16 puppies in one litter. 15 of the slate-blue floppy angels survived. The reporters consistently get the numbers confused. Win!


Freegans, aka "Oi, trendie, leave that for the homeless!" The comments are a varied, amusing read here.

Filed as: animals, dogs, food, news | 0 pawprints »