This is an archived snapshot of W3C's public bugzilla bug tracker, decommissioned in April 2019. Please see the home page for more details.
Section: http://www.whatwg.org/specs/web-apps/current-work/complete.html#examples-1 Comment: For vCard, itemprop="fn" and itemprop="n" can be combined Posted from: 222.147.252.201 by w3.org@boblet.net
It’s typical when using microformats to apply fn and n (plus fn and org) together, and this would make the examples less verbose. Here are the relevant example snippets after this change: (I’ll cover Jack Bauer’s name in a separate bug) <span itemprop="agent" itemscope itemtype="http://microformats.org/profile/hcard"><a itemprop="email" href="mailto:c.obrian@la.ctu.gov.invalid"><span itemprop="fn n"><span itemprop="given-name">Chloe</span> <span itemprop="family-name">O'Brian</span></span></a></span> (note this also had a spurious extra itemscope on itemprop="n", and the typo itemprop="family=name") <address itemscope itemtype="http://microformats.org/profile/hcard"> <strong itemprop="fn n"><span itemprop="given-name">Alfred</span> <span itemprop="family-name">Person</span></strong> <br> <span itemprop="adr" itemscope> <span itemprop="street-address">1600 Amphitheatre Parkway</span> <br> <span itemprop="street-address">Building 43, Second Floor</span> <br> <span itemprop="locality">Mountain View</span>, <span itemprop="region">CA</span> <span itemprop="postal-code">94043</span> </span> </address> <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>
itemprop="n" needs to be on an element with an itemscope attribute, as it's something that has subproperties; itemprop="fn" needs to be on an element without itemscope as it needs to be parsed as a string... so they can't be on the same element. HTML+RDFa 1.1 would in fact allow them on the same element: <div profile="http://example.com/vcard" typeof="vcard"> <span rel="n" property="fn"><span property="given-name">Jack</span> <span property="family-name">Bauer</span></span> <div rel="agent"> <span rel="n" property="fn"><span property="given-name">Chloe</span> <span property="family-name">O'Brian</span></span> </div> </div>
@Toby — aah thanks, my misunderstanding. This bug can be closed, and I’ve opened a new one for the missing itemscope attributes in the eaxmples: http://www.w3.org/Bugs/Public/show_bug.cgi?id=10199
closed per comment