From Microformats Wiki
hcard-tests /
Revision as of 22:42, 22 July 2005 by (talk) (a bunch more tests... hope this works...)
Jump to navigation Jump to search

hCard Tests

This page is for documenting hCard tests / test cases, both directly, and by reference.

Test Cases

simple hCard

  • code
<span class="vcard"><span class="fn n">Tantek Çelik</span></span>
  • inline

Tantek Çelik

a bunch more

   John Doe
   normal card
   John Doe
   card with an ID
   John Doe2
   tabs in class fields
   John Doe3
   LFs in class fields
   John Doe3
   CRs in class fields
     John Doe4
     lang dominating vcard
   John Doe5
   xml:lang on name elt

one from <a href="http://tantek.com/microformats/hcard-creator.html">hCard Creator</a>... hmm... no email address support?

 <img style="float:left; margin-right:4px" src="dan_c_thumb.jpg" alt="photo" class="photo"/>
<a class="url fn" href="http://www.w3.org/">Dan Connolly</a>
200 Tech Square

one from <a href="http://thedredge.org/2005/06/using-hcards-in-your-blog/">The Dredge // Blog Archive // Using hcards in your blog</a>:

<a href="http://suda.co.uk" title="Visit brian suda's website"><img src="avatar.php?gravatar_id=47670f6479d568975c906a0dc49df6ec&size=50&default=http%3A%2F%2Fthedredge.org%2Fi%2Funknown.gif" alt=""/></a> <a class="fn url" rel="contact colleague" href="http://suda.co.uk">brian suda</a> <a href="#comment-" title="">25.6.05</a> <a href="http://gmpg.org/xfn/">XFN</a>: contact colleague


External Tests

DanConnolly is working on hcardTest.html; the current version is always available. (I dunno why cvsweb uses the ordinary looing URL for the changelog rather than the current version.)