<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://www.w3.org/Bugs/Public/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.4"
          urlbase="https://www.w3.org/Bugs/Public/"
          
          maintainer="sysbot+bugzilla@w3.org"
>

    <bug>
          <bug_id>13150</bug_id>
          
          <creation_ts>2011-07-05 16:35:52 +0000</creation_ts>
          <short_desc>Behavior of multiple @itemid values in the same document</short_desc>
          <delta_ts>2011-08-04 05:05:49 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>HTML WG</product>
          <component>LC1 HTML Microdata (editor: Ian Hickson)</component>
          <version>unspecified</version>
          <rep_platform>All</rep_platform>
          <op_sys>All</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>NEEDSINFO</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P2</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Manu Sporny">msporny</reporter>
          <assigned_to name="Ian &apos;Hixie&apos; Hickson">ian</assigned_to>
          <cc>ian</cc>
    
    <cc>jackalmage</cc>
    
    <cc>mike</cc>
    
    <cc>philipj</cc>
    
    <cc>public-html-admin</cc>
    
    <cc>public-html-wg-issue-tracking</cc>
          
          <qa_contact name="HTML WG Bugzilla archive list">public-html-bugzilla</qa_contact>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>50680</commentid>
    <comment_count>0</comment_count>
    <who name="Manu Sporny">msporny</who>
    <bug_when>2011-07-05 16:35:52 +0000</bug_when>
    <thetext>Logging this bug at the request of Philip Jägenstedt:

When you use the same @itemid on the page, and you retrieve data using the Microdata DOM API, is the expected behavior that:

1) All properties for the same @itemid are merged with two separate items on the page.
2) All properties and types for the same @itemid are merged.
3) What happens when somebody does a getItems() and uses one of the itemtypes - are all properties returned?

With RDFa and RDF in general, all things w/ the same &quot;@itemid&quot; (aka: &quot;@about&quot;) would be merged into a single object with multiple types when retrieved via the RDFa API. This is, in fact, what happens with RDF output for Philip&apos;s Microdata parser. However, the JSON output creates two objects with non-overlapping properties. What is the proper behavior?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>50709</commentid>
    <comment_count>1</comment_count>
    <who name="Philip Jägenstedt">philipj</who>
    <bug_when>2011-07-06 08:23:24 +0000</bug_when>
    <thetext>What I&apos;m doing in MicrodataJS is per spec, see http://www.whatwg.org/specs/web-apps/current-work/multipage/links.html#json

The only way that itemid feeds into the JSON export is &quot;&quot;&quot;If the item has an global identifier, add an entry to result called &quot;id&quot; whose value is the global identifier of item.&quot;&quot;&quot;

IMO, this is just fine as it is.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>50738</commentid>
    <comment_count>2</comment_count>
    <who name="Tab Atkins Jr.">jackalmage</who>
    <bug_when>2011-07-06 18:39:08 +0000</bug_when>
    <thetext>This doesn&apos;t seem reasonable.  @itemid identifies a global subject for a set of triples.  You can specify multiple different sets of triples for the same global object, using different vocabularies.  It doesn&apos;t seem useful or reasonable to merge these into a single Microdata item.

For example, I may mark up, on the same page, a review of a book and purchasing information about the book, using two different vocabs but using @itemid to specify they&apos;re both about the same book.

When reading out the review item I wouldn&apos;t want the data to be polluted with purchasing information, and vice versa.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>50814</commentid>
    <comment_count>3</comment_count>
    <who name="Ian &apos;Hixie&apos; Hickson">ian</who>
    <bug_when>2011-07-07 23:04:48 +0000</bug_when>
    <thetext>EDITOR&apos;S RESPONSE: This is an Editor&apos;s Response to your comment. If you are satisfied with this response, please change the state of this bug to CLOSED. If you have additional information and would like the editor to reconsider, please reopen this bug. If you would like to escalate the issue to the full HTML Working Group, please add the TrackerRequest keyword to this bug, and suggest title and text for the tracker issue; or you may create a tracker issue yourself, if you are able to do so. For more details, see this document:
   http://dev.w3.org/html5/decision-policy/decision-policy.html

Status: Did Not Understand Request
Change Description: no spec change
Rationale: I don&apos;t understand. Could you elaborate? What&apos;s the problem here?

Note that the semantic of itemid=&quot;&quot; is entirely up to the vocabulary. We can&apos;t assume any particular processing for multiple items with the same itemid=&quot;&quot;.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>52987</commentid>
    <comment_count>4</comment_count>
    <who name="Michael[tm] Smith">mike</who>
    <bug_when>2011-08-04 05:05:49 +0000</bug_when>
    <thetext>mass-move component to LC1</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>