On Sep 22, 2007, at 11:32 AM, Stanimir Stamenkov wrote:

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% [EMAIL PROTECTED]">[EMAIL PROTECTED]</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:

I think the reason this doesn't work the way you expect is due some of us mis-reading the releveant RFCs and concluding that that syntax for mailto URIs is incorrect. Upon re-reading them I think I was wrong, the syntax you're using there is fine and should be supported. I'll work on getting it into my parsers and the test suite.

John Doe <[EMAIL PROTECTED]>

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% [EMAIL PROTECTED]"><span class="value">[EMAIL PROTECTED]</span></a>
</address>

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

Yeah. We should add a test for this.

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

-ryan
_______________________________________________
microformats-discuss mailing list
microformats-discuss@microformats.org
http://microformats.org/mailman/listinfo/microformats-discuss

Reply via email to