<?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>14039</bug_id>
          
          <creation_ts>2011-09-06 07:23:03 +0000</creation_ts>
          <short_desc>The algorithm for finding properties of an item doesn&apos;t check for element namespace</short_desc>
          <delta_ts>2011-10-28 23:06:17 +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>HTML Microdata (editor: Ian Hickson)</component>
          <version>unspecified</version>
          <rep_platform>PC</rep_platform>
          <op_sys>Linux</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</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="Henri Sivonen">hsivonen</reporter>
          <assigned_to name="Ian &apos;Hixie&apos; Hickson">ian</assigned_to>
          <cc>ian</cc>
    
    <cc>jackalmage</cc>
    
    <cc>jeni</cc>
    
    <cc>kennyluck</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>56365</commentid>
    <comment_count>0</comment_count>
    <who name="Henri Sivonen">hsivonen</who>
    <bug_when>2011-09-06 07:23:03 +0000</bug_when>
    <thetext>http://www.whatwg.org/specs/web-apps/current-work/#the-properties-of-an-item

Hixie says the attributes should only be considered on HTML elements. I ask why not on SVG and MathML elements, too.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>56385</commentid>
    <comment_count>1</comment_count>
    <who name="Tab Atkins Jr.">jackalmage</who>
    <bug_when>2011-09-06 15:14:39 +0000</bug_when>
    <thetext>Because it&apos;s only defined on HTML.  We&apos;ve been minimally invasive to the other two languages.  I assume the addition of the Microdata attributes to SVG and MathML should be brought up with those language bodies.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>56459</commentid>
    <comment_count>2</comment_count>
    <who name="Philip Jägenstedt">philipj</who>
    <bug_when>2011-09-07 07:54:02 +0000</bug_when>
    <thetext>AFAICT for looking at the code and no testing, Opera&apos;s implementation only considers the item* attributes in the HTML namespace.

If we support Microdata in SVG or MathML, then we really should have a different set of element-specific rules for itemValue as well.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>58387</commentid>
    <comment_count>3</comment_count>
    <who name="Ian &apos;Hixie&apos; Hickson">ian</who>
    <bug_when>2011-10-18 22:38:18 +0000</bug_when>
    <thetext>Yeah this was intentionally not written to &quot;pollute&quot; other namespaces. If those namespaces are interested in supporting the microdata DOM interfaces and content attributes, and being handled in the various processing models for microdata, then we can certainly do that. However, I would suggest we wait until there&apos;s a real need for it. So far, it&apos;s not 100% clear that there&apos;s a clear need for microdata at all; the only large-scale consumed use of it that I&apos;m aware of is schema.org.

Any objection to marking this &quot;LATER&quot;?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>58539</commentid>
    <comment_count>4</comment_count>
    <who name="Henri Sivonen">hsivonen</who>
    <bug_when>2011-10-20 12:16:09 +0000</bug_when>
    <thetext>I think it would be better to be explicit about namespaces (even if that meant only considering the HTML namespace) than to mark anything LATER. (REMIND and LATER don&apos;t really help people like me who review patches that implement this stuff.)</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>58560</commentid>
    <comment_count>5</comment_count>
    <who name="Ian &apos;Hixie&apos; Hickson">ian</who>
    <bug_when>2011-10-20 20:12:29 +0000</bug_when>
    <thetext>In what sense are we not explicit already?

I don&apos;t understand what the problem is. I thought this was just an RFE for adding microdata to SVG and MathML, for which LATER seems like the appropriate next step. I&apos;m happy to fix a problem if there is one. Can you elaborate?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>58755</commentid>
    <comment_count>6</comment_count>
    <who name="Henri Sivonen">hsivonen</who>
    <bug_when>2011-10-24 16:09:18 +0000</bug_when>
    <thetext>(In reply to comment #5)
&gt; In what sense are we not explicit already?

The properties of an item algorithm doesn&apos;t say that only HTML elements are considered.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>58941</commentid>
    <comment_count>7</comment_count>
    <who name="Ian &apos;Hixie&apos; Hickson">ian</who>
    <bug_when>2011-10-25 19:22:56 +0000</bug_when>
    <thetext>It says that only elements with an itemprop=&quot;&quot; are considered (where &quot;itemprop&quot; is a hyperlink to the definition of the HTML attribute), and only HTML elements can have it. This is the same as how when the spec refers to elements with the contenteditable=&quot;&quot; attribute it is only referring to HTML elements.

There&apos;s no way I can sanely make this explicit all over the spec. It would make it completely unreadable. Almost every mention of an HTML-specific global attribute (tabindex, hidden, title, dir, dropzone...) would need to be qualified as only applying to HTML.

I&apos;ve added a section that calls this out, and then added another section calling it out again for microdata specifically. Hopefully that&apos;s sufficient?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>58942</commentid>
    <comment_count>8</comment_count>
    <who name="">contributor</who>
    <bug_when>2011-10-25 19:23:22 +0000</bug_when>
    <thetext>Checked in as WHATWG revision r6754.
Check-in comment: Try to clarify that global HTML attributes aren&apos;t global across other namespaces without having to litter &apos;...and is an HTML element&apos; all over the spec.
http://html5.org/tools/web-apps-tracker?from=6753&amp;to=6754</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>58973</commentid>
    <comment_count>9</comment_count>
    <who name="Henri Sivonen">hsivonen</who>
    <bug_when>2011-10-26 06:27:31 +0000</bug_when>
    <thetext>(In reply to comment #7)
&gt; Hopefully that&apos;s sufficient?

It is, though not as good for spec random access as &quot;and is an HTML element&quot; all over the place.

Did you intend to mark this FIXED?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>59162</commentid>
    <comment_count>10</comment_count>
    <who name="Ian &apos;Hixie&apos; Hickson">ian</who>
    <bug_when>2011-10-28 23:06:17 +0000</bug_when>
    <thetext>I left it open so I would see your response. :-)

I agree that for people jumping into specific parts of the spec, it&apos;s more discoverable for this to be repeated at each point. Unfortunately, it also makes the spec really quite hard to read in general if you&apos;re not looking for this particular point.


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: Accepted
Change Description: see diff given above
Rationale: see comments above

Please don&apos;t hesitate to reopen if you can think of a better way to fix this that is more discoverable without being exceedingly verbose.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>