[uf-discuss] Chris Messina's hcard

Colin D. Devroe cdevroe at theubergeeks.net
Thu Apr 20 06:46:21 PDT 2006


I was told you needed to use fn, and n when you wanted to split the  
name up into its various parts.  Here is the markup for my hCard, in  
which I wanted my middle initial.  And the parsers handle it just fine.

<div class="vcard">
		<p><img class="photo" src="http://cdevroe.com/media/images/ 
cdevroe.jpg" alt="photo" /></p>
		<div class="n fn">
<a class="url" href="http://cdevroe.com/"><span class="given- 
name">Colin</span> <span class="additional-name">D.</span> <span  
class="family-name">Devroe</span></a>
</div>
		<p><a class="email pref"  
href="mailto:cdevroe at theubergeeks.net">cdevroe at theubergeeks.net</a></p>
	 	<div class="adr">
	  		<p><span class="street-address">P.O. Box 61</span></p>
	 		<p><span class="locality">Clifford</span>, <span  
class="region">Pa</span> <span class="postal-code">18413</span></p>
	 	</div>
	 	<div class="tel">(570) 222-6546</div>
	</div>



On Apr 20, 2006, at 9:32 AM, Pat Ramsey wrote:

> I'm under the impression you need the FN, too. Without that, I  
> don't think the parsers will recognize it. As for not using N, the  
> vcard spec requires it, but hcard implies it with the use of FN.
>
> http://microformats.org/wiki/hcard#Implied_.22n.22_Optimization
>
> That's my read on it.
>
> Pat
>
> On 4/20/06, Chris Messina < chris.messina at gmail.com> wrote:
> Well, actually, I probably am wrong -- could someone point me to the
> authoritative rules on whether your proposal is correct? I just always
> presumed that you needed FN... Didn't realize that you'd use N if you
> split up the name... seems counter-intuitive I guess even if it
> follows the standard.
>
> Chris
>
> On 4/20/06, Nick Swan <nick.swan at gmail.com> wrote:
> >
> > Hi all,
> > try to write a parser for hcards and came across Chris Messina's.
> >
> > <a class="url fn" rel="me"
> > href="http://factoryjoe.com/blog"><span
> > class="given-name">Chris</span> <span
> > class="family-name">Messina</span></a>
> >
> >
> > Now I'm sure he hasn't got his wrong, but I thought it would be:
> > <a class="url n" rel="me"
> > href="http://factoryjoe.com/blog"><span
> > class="given-name">Chris</span> <span
> > class="family-name">Messina</span></a>
> >
> >
> >
> > or
> >
> >
> > <a class="url fn" rel="me"
> > href="http://factoryjoe.com/blog>ChrisMessina</a>
> >
> > I thought you only split the name up if the class is given an  
> attribute
> > value of n?
> >
> >
> > Cheers
> >
> > Nick
> > _______________________________________________
> > microformats-discuss mailing list
> > microformats-discuss at microformats.org
> > http://microformats.org/mailman/listinfo/microformats-discuss
> >
> >
> >
> _______________________________________________
> microformats-discuss mailing list
> microformats-discuss at microformats.org
> http://microformats.org/mailman/listinfo/microformats-discuss
>
>
>
> -- 
> Pat Ramsey
> ramsey.pat at gmail.com
> http://www.southwestern.edu/~ramseyp
> _______________________________________________
> microformats-discuss mailing list
> microformats-discuss at microformats.org
> http://microformats.org/mailman/listinfo/microformats-discuss

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://microformats.org/discuss/mail/microformats-discuss/attachments/20060420/74b5f933/attachment-0001.htm


More information about the microformats-discuss mailing list