On Tue, 15 Feb 2011 15:49:11 -0500
Stephen Paul Weber <[email protected]> wrote:
> For example, in this case, while having class="fn" may be beneficial
> (if you want to parse the form as a microformat) using name="fn" is
> more semantically correct if what you want to do is autofill or
> similar.
For what it's worth, you might want to instead of using <input>
elements just with name="fn", use names matching the following pattern:
/^([^\.]+\.)?fn$/
This would allow, say:
you.fn
you.email
friend.fn
friend.email
for cases where the contact details of multiple people are being
requested in the same form. Also useful when two sets of contact
details are being requested for the same person:
delivery.adr
billing.adr
The dot syntax is inspired by the grouping syntax in RFC 2425 and the
current vCard 4.0 drafts.
--
Toby A Inkster
<mailto:[email protected]>
<http://tobyinkster.co.uk>
_______________________________________________
microformats-discuss mailing list
[email protected]
http://microformats.org/mailman/listinfo/microformats-discuss