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
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
Depends on:
Reported: 2010-07-14 07:01 UTC by contributor
Modified: 2010-10-05 13:03 UTC (History)
6 users (show)

See Also:


Description contributor 2010-07-14 07:01:24 UTC

For vCard, itemprop="fn" and itemprop="n" can be combined

Posted from: by
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)

 itemprop="agent" itemscope itemtype=""><a
 itemprop="email" href=""><span
 itemprop="fn n"><span
 itemprop="given-name">Chloe</span> <span
(note this also had a spurious extra itemscope on itemprop="n", and the typo itemprop="family=name")

<address itemscope itemtype="">
 <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 itemscope itemtype="">
<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="" 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>
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:
Comment 4 Ian 'Hixie' Hickson 2010-09-08 06:42:07 UTC
closed per comment