[uf-discuss] hCard e-mail link/value
Scott Reynen
scott at randomchaos.com
Sat Sep 22 11:54:13 PDT 2007
On Sep 22, 2007, at 12:32 PM, Stanimir Stamenkov wrote:
> <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?
See:
http://microformats.org/wiki/hcard-parsing#email_property
<a class="email"> takes the value from the href attribute as an
exception from standard parsing rules. You probably want to do this
instead:
<a href="mailto:John%20Doe%3Cjohn.doe at example.com%3E"><span
class="email">john.doe at example.com</span></a>
Peace,
Scott
More information about the microformats-discuss
mailing list