List Info

Thread: hCard e-mail link/value




hCard e-mail link/value
user name
2007-09-22 13:32:16
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.doeexample.com%3E">john.doeexample.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.doeexample.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.doeexample.com%3E"><span 
class="value">john.doeexample.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/microform
ats_bookmarklet/>, 
Tails Export <https://addons.mozilla.org/en-US/firefox/addon/2240>

-- 
Stanimir
_______________________________________________
microformats-discuss mailing list
microformats-discussmicroformats.org
http://microformats.org/mailman/listinfo/microforma
ts-discuss

Re: hCard e-mail link/value
country flaguser name
United States
2007-09-22 13:54:13
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.doeexample.com%3E"><span  
> class="value">john.doeexample.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_proper
ty

<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.doeexample.com%3E"><span  
class="email">john.doeexample.com</span></a>

Peace,
Scott

_______________________________________________
microformats-discuss mailing list
microformats-discussmicroformats.org
http://microformats.org/mailman/listinfo/microforma
ts-discuss

Re: hCard e-mail link/value
user name
2007-09-23 05:40:05
Sat, 22 Sep 2007 12:54:13 -0600, /Scott Reynen/:

> http://microformats.org/wiki/hcard-parsing#email_proper
ty
> 
> <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.doeexample.com%3E"><span 
> class="email">john.doeexample.com</span></a>

Thanks.  That makes sense, although I think the handling of
the 
class "value" in this case should not have been
overridden.  It 
wouldn't contradict with the case if the "email"
class is on <a 
href="mailto:..."> element, but would make the
handling of the 
"value" class more uniform.  It could have also
been defined a more 
strict parsing of the href="mailto:..." value so
only the addr-spec 
(as defined in RFC 822) is extracted, but I'm not sure if
this would 
be more helpful than restricting.

I've tried the "Microformats Bookmarklet" has a
problem with the 
suggested construct not extracting any e-mail value but the
"Tails 
Export" extension gets it right.

-- 
Stanimir
_______________________________________________
microformats-discuss mailing list
microformats-discussmicroformats.org
http://microformats.org/mailman/listinfo/microforma
ts-discuss

Re: hCard e-mail link/value
country flaguser name
United States
2007-09-23 19:18:08
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% 
> 3Cjohn.doeexample.com%3E">john.doeexample.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:

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 <john.doeexample.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.doeexample.com%3E"><span  
> class="value">john.doeexample.com</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://leftlogi
c.com/lounge/articles/ 
> microformats_bookmarklet/>, Tails Export
<https:// 
> addons.mozilla.org/en-US/firefox/addon/2240>

-ryan
_______________________________________________
microformats-discuss mailing list
microformats-discussmicroformats.org
http://microformats.org/mailman/listinfo/microforma
ts-discuss

Re: hCard e-mail link/value
user name
2007-09-24 15:16:46
Sun, 23 Sep 2007 17:18:08 -0700, /Ryan King/:
> On Sep 22, 2007, at 11:32 AM, Stanimir Stamenkov
wrote:
>
>> <address class="vcard">
>>   <span class="fn">John
Doe</span><br>
>>   E-mail: <a class="email" 
>> href="mailto:John%20Doe%3Cjohn.doeexample.com%3E">john.doeexample.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:
>
> 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.

Seems related to my other reply comment:

     "It could have also been defined a more strict
parsing of the 
href="mailto:..." value so only the addr-spec (as
defined in RFC 
822) is extracted, but I'm not sure if this would be more
helpful 
than restricting."

The point I was making is I'm not sure the vCard spec
permits full 
address like:

Joe D. <john.doeexample.com>

in the EMAIL;INTERNET field.  That is the EMAIL field
specifies a 
different phrase to entitle the recipient than its full
name, for 
example.  As far as I know there may are multiple e-mail
addresses 
specified and it would make sense if it is possible to
entitle the 
recipient differently when sending to the different
addresses.

-- 
Stanimir
_______________________________________________
microformats-discuss mailing list
microformats-discussmicroformats.org
http://microformats.org/mailman/listinfo/microforma
ts-discuss

[1-5]

about | contact  Other archives ( Real Estate discussion Medical topics )