[uf-discuss] re: HTML5 support
Oli Studholme
microformats.org at boblet.net
Sun Jul 18 21:30:45 PDT 2010
Hey Martin,
On Wed, Jul 14, 2010 at 12:06 PM, Oli Studholme
<microformats.org at boblet.net> wrote:
>> Microdata vcard example from
>> http://www.whatwg.org/specs/web-apps/current-work/multipage/links.html#vcard
>>
>> <span itemscope itemtype="http://microformats.org/profile/hcard">
>> <span itemprop=fn>
>> <span itemprop="n">
>> <span itemprop="given-name">George</span>
>> <span itemprop="family-name">Washington</span>
>> </span>
>> </span>
>> </span>
>
> This is equivalent to
>
> <span itemscope itemtype="http://microformats.org/profile/hcard">
> <span itemprop="fn n">
> <span itemprop="given-name">George</span>
> <span itemprop="family-name">Washington</span>
> </span>
> </span>
I’m sorry but I misunderstood/misread the microdata vcard spec (I
didn’t realise that n was a nested item), and my example is wrong. It
should be longer not shorter :)
<span itemscope itemtype="http://microformats.org/profile/hcard">
<span itemprop=fn>
<span itemprop="n" itemscope>
<span itemprop="given-name">George</span>
<span itemprop="family-name">Washington</span>
</span>
</span>
</span>
So for a non-Western name one extra wrapper element, but for a name
with n optimisation three extra wrapper elements.
peace - oli
More information about the microformats-discuss
mailing list