hcard-tests: Difference between revisions
m (→Test Cases) |
(a bunch more tests... hope this works...) |
||
Line 14: | Line 14: | ||
* inline | * inline | ||
<span class="vcard"><span class="fn n">Tantek Çelik</span></span> | <span class="vcard"><span class="fn n">Tantek Çelik</span></span> | ||
=== a bunch more === | |||
<div class="vcard"> | |||
<span class="fn">John Doe</span> | |||
<span class="note">normal card</span> | |||
</div> | |||
<div class="vcard" id="thisOne"> | |||
<span class="fn">John Doe</span> | |||
<span class="note">card with an ID</span> | |||
</div> | |||
<div class="vcard "> | |||
<span class=" fn">John Doe2</span> | |||
<span class="note">tabs in class fields</span> | |||
</div> | |||
<div class="vcard | |||
stuff"> | |||
<span class=" | |||
fn">John Doe3</span> | |||
<span class="note">LFs in class fields</span> | |||
</div> | |||
<div class="vcard | |||
stuff"> | |||
<span class=" | |||
fn">John Doe3</span> | |||
<span class="note">CRs in class fields</span> | |||
</div> | |||
<div lang="es"> | |||
<div class="vcard"> | |||
<span class="fn">John Doe4</span> | |||
<span class="note">lang dominating vcard</span> | |||
</div> | |||
</div> | |||
<div class="vcard"> | |||
<span class="fn" xml:lang="de">John Doe5</span> | |||
<span class="note">xml:lang on name elt</span> | |||
</div> | |||
<p>one from <a href="http://tantek.com/microformats/hcard-creator.html">hCard Creator</a>... hmm... no email address support?</p> | |||
<div class="vcard"> | |||
<img style="float:left; margin-right:4px" src="http://www.w3.org/People/Connolly/9704/dan_c_thumb.jpg" alt="photo" class="photo"/> | |||
<a class="url fn" href="http://www.w3.org/">Dan Connolly</a> | |||
<div class="org">W3C/MIT</div> | |||
<div class="adr"> | |||
<div class="street-address">200 Tech Square</div> | |||
<span class="locality">Cambridge</span>, | |||
<span class="region">MA</span> | |||
<span class="postal-code">02139</span> | |||
</div> | |||
<div class="tel">555-1212</div> | |||
</div> | |||
<p>one from <a href="http://thedredge.org/2005/06/using-hcards-in-your-blog/">The Dredge // Blog Archive // Using hcards in your blog</a>:</p> | |||
<div class="vcard"> | |||
<a href="http://suda.co.uk" title="Visit brian suda's website"><img src="http://www.gravatar.com/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> | |||
<span class="cdate"><a href="#comment-" title="">25.6.05</a></span> | |||
<span class="rel"><a href="http://gmpg.org/xfn/"><abbr title="XHTML Friends Network">XFN</abbr></a>: contact colleague</span> | |||
<span class="id"> #001087</span> | |||
</div> | |||
== External Tests == | == External Tests == | ||
DanConnolly is working on [http://dev.w3.org/cvsweb/2001/palmagent/hcardTest.html hcardTest.html]; [http://dev.w3.org/cvsweb/~checkout~/2001/palmagent/hcardTest.html?rev=HEAD&content-type=text/html;%20charset=iso-8859-1 the current version] is always available. (I dunno why cvsweb uses the ordinary looing URL for the changelog rather than the current version.) | DanConnolly is working on [http://dev.w3.org/cvsweb/2001/palmagent/hcardTest.html hcardTest.html]; [http://dev.w3.org/cvsweb/~checkout~/2001/palmagent/hcardTest.html?rev=HEAD&content-type=text/html;%20charset=iso-8859-1 the current version] is always available. (I dunno why cvsweb uses the ordinary looing URL for the changelog rather than the current version.) |
Revision as of 22:42, 22 July 2005
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="" alt="photo" class="photo"/> <a class="url fn" href="http://www.w3.org/">Dan Connolly</a>
Cambridge, MA
02139
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="" 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
#001087
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.)