This is an archived snapshot of W3C's public bugzilla bug tracker, decommissioned in April 2019. Please see the home page for more details.

Bug 10159 - For vCard, itemprop="fn" and itemprop="n" can be combined
Summary: For vCard, itemprop="fn" and itemprop="n" can be combined
Status: RESOLVED INVALID
Alias: None
Product: HTML WG
Classification: Unclassified
Component: pre-LC1 HTML Microdata (editor: Ian Hickson) (show other bugs)
Version: unspecified
Hardware: Other other
: P3 normal
Target Milestone: ---
Assignee: Ian 'Hixie' Hickson
QA Contact: HTML WG Bugzilla archive list
URL: http://www.whatwg.org/specs/web-apps/...
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-07-14 07:01 UTC by contributor
Modified: 2010-10-05 13:03 UTC (History)
6 users (show)

See Also:


Attachments

Description contributor 2010-07-14 07:01:24 UTC
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
Comment 1 Oli Studholme 2010-07-14 07:18:03 UTC
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>
Comment 2 Toby Inkster 2010-07-18 20:05:45 UTC
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>
Comment 3 Oli Studholme 2010-07-19 03:59:20 UTC
@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
Comment 4 Ian 'Hixie' Hickson 2010-09-08 06:42:07 UTC
closed per comment