[uf-discuss] Microformats in Form Fields

Drew McLellan lists at allinthehead.com
Thu Sep 28 09:21:05 PDT 2006


On 28/9/2006, "Ryan Cannon" <ryan at ryancannon.com> wrote:

>> What if I was to mark up the form (and fields) with hCard classes?
>> Good idea? Bad idea? I strikes me that it could be useful for auto-
>> complete applications, but not sure if it would ‘pollute’ the web
>> with effectively a useless/empty hCard when the form is published.
>
>Wouldn't a solution to this be not to wrap the form fields in a  
>*.vcard block?
>The information would then never actually generate a vcard using a  
>parser, and
>a blank form is not technically a vcard in HTML.
>
>Alternately, you could use @name to supply your semantics instead of  
>@class.

That's the ticket. But you'd need a mixture of name and class to
account for everything... e.g.

<fieldset class="fn  n">
   <input type="text" name="given-name" />
   <input type="text" name="family-name" />
</fieldset>

(obviously incomplete example)

drew.




More information about the microformats-discuss mailing list