[uf-discuss] hCard e-mail link/value

Stanimir Stamenkov s7an10 at netscape.net
Sat Sep 22 11:32:16 PDT 2007


I've first used such a formatted hCard in some pages:

<address class="vcard">
   <span class="fn">John Doe</span><br>
   E-mail: <a class="email" 
href="mailto:John%20Doe%3Cjohn.doe at example.com%3E">john.doe at example.com</a>
</address>

Then I've noticed some tools [1] I've tried which export vCard files 
out of that hCard information put the whole part after the mailto: 
scheme as an e-mail address value:

John Doe <john.doe at example.com>

I don't really want it this way and I'm not sure how correct is it 
like that so I've tried the following form:

<address class="vcard">
   <span class="fn">John Doe</span><br>
   E-mail: <a class="email" 
href="mailto:John%20Doe%3Cjohn.doe at example.com%3E"><span 
class="value">john.doe at example.com</span></a>
</address>

Shouldn't just the "value" be used as an e-mail address value this way?

[1] Microformats Bookmarklet 
<http://leftlogic.com/lounge/articles/microformats_bookmarklet/>, 
Tails Export <https://addons.mozilla.org/en-US/firefox/addon/2240>

-- 
Stanimir


More information about the microformats-discuss mailing list