<?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>12809</bug_id>
          
          <creation_ts>2011-05-29 10:50:33 +0000</creation_ts>
          <short_desc>Invalid examples using link and meta elements in the body</short_desc>
          <delta_ts>2011-08-04 05:05:36 +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>PC</rep_platform>
          <op_sys>All</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="pmika">pmika</reporter>
          <assigned_to name="Ian &apos;Hixie&apos; Hickson">ian</assigned_to>
          <cc>ayg</cc>
    
    <cc>ian</cc>
    
    <cc>mike</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>48892</commentid>
    <comment_count>0</comment_count>
    <who name="pmika">pmika</who>
    <bug_when>2011-05-29 10:50:33 +0000</bug_when>
    <thetext>According to the HMTL5 LC document [1], the link and meta tags may not appear in the body, and further require a rel attribute (for link) and one of name, http-equiv, and charset (for meta). 

There are several examples in the HTML Microdata document where this is violated, e.g. 

&lt;span itemscope&gt;&lt;meta itemprop=&quot;name&quot; content=&quot;The Castle&quot;&gt;&lt;/span&gt;

in Section 2.2 shows a meta element in the body which does not have name, http-equiv, or charset.

and further below in Section 5.2.1 appears a link element in the body and without a rel:

 &lt;link itemprop=&quot;http://purl.org/dc/terms/type&quot; href=&quot;http://books.example.com/product-types/BOOK&quot;&gt;

There are possibly other places where the document needs to be revised, since these mistakes seem to be consistent and possibly reflecting an earlier version of the HTML5 draft where this was allowed.

[1] http://www.w3.org/TR/2011/WD-html5-20110525/</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>48894</commentid>
    <comment_count>1</comment_count>
    <who name="Aryeh Gregor">ayg</who>
    <bug_when>2011-05-29 14:24:22 +0000</bug_when>
    <thetext>This looks like an oversight in the spec splitting.  The intent is that meta/link should be valid in this case, as in the WHATWG version:

http://www.whatwg.org/specs/web-apps/current-work/multipage/semantics.html#the-link-element
http://www.whatwg.org/specs/web-apps/current-work/multipage/semantics.html#the-meta-element

But of course these lines aren&apos;t present in the W3C draft of HTML5.  So the W3C version of microdata has to include some text saying that it makes meta and link valid in the body if the itemprop attribute is present.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>48895</commentid>
    <comment_count>2</comment_count>
    <who name="pmika">pmika</who>
    <bug_when>2011-05-29 15:23:30 +0000</bug_when>
    <thetext>Hi Aryeh,

Possibly, but if you contend that this is a bug in the HTML5 spec, then you need to open a bug to the HTML5 spec.

Cheers,
Peter</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>48896</commentid>
    <comment_count>3</comment_count>
    <who name="Michael[tm] Smith">mike</who>
    <bug_when>2011-05-29 16:09:31 +0000</bug_when>
    <thetext>(In reply to comment #2) from Peter
&gt; Possibly, but if you contend that this is a bug in the HTML5 spec, then you
&gt; need to open a bug to the HTML5 spec.

There is a part of the &quot;Extensibility&quot; section of the HTML5 spec that contains some language indicating that other &quot;applicable specifications&quot; can override conformance criteria given in the HTML5 spec.

  http://dev.w3.org/html5/spec/infrastructure.html#other-applicable-specifications

Relevant excerpt:

[[
The conformance terminology for documents depends on the nature of the changes introduced by such applicable specificactions, and on the content and intended interpretation of the document. Applicable specifications MAY define new document content (e.g. a foobar element), MAY prohibit certain otherwise conforming content (e.g. prohibit use of &lt;table&gt;s), or MAY change the semantics, DOM mappings, or other processing rules for content defined in this specification. 
]]

So in this case, the Microdata spec is a such an applicable specification.

All that said, a document that contains Microdata markup such itemscope is not actually a conforming HTML5 document (not as far as the W3C HTML5 defines it). It is instead considered a conforming HTML5+Microdata document.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>48897</commentid>
    <comment_count>4</comment_count>
    <who name="Aryeh Gregor">ayg</who>
    <bug_when>2011-05-29 19:16:57 +0000</bug_when>
    <thetext>As Mike says, it&apos;s not a bug in HTML5.  The microdata spec overrules certain requirements in the HTML5 spec, e.g., permitting certain attributes that HTML5 does not permit.  Likewise, it needs to permit &lt;meta&gt; and &lt;link&gt; to be used in certain cases where HTML5 doesn&apos;t permit them.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>48978</commentid>
    <comment_count>5</comment_count>
    <who name="Ian &apos;Hixie&apos; Hickson">ian</who>
    <bug_when>2011-05-31 20:16:33 +0000</bug_when>
    <thetext>This isn&apos;t unintentional. I commented out the dependencies from Microdata to HTML at some point to address some pointless bureaucratic request, and this was one of the necessary victims.

The WHATWG spec has the microdata stuff where it belongs, in the same spec as the rest of HTML, and this stuff is clearly defined there.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>48987</commentid>
    <comment_count>6</comment_count>
    <who name="Ian &apos;Hixie&apos; Hickson">ian</who>
    <bug_when>2011-05-31 23:31:59 +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: Accepted
Change Description: I put the dependency back in to resolve this.
Rationale: This (and a number of other things) have to be defined for microdata to make sense.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>48988</commentid>
    <comment_count>7</comment_count>
    <who name="">contributor</who>
    <bug_when>2011-05-31 23:35:50 +0000</bug_when>
    <thetext>Checked in as WHATWG revision r6165.
Check-in comment: allow dependency on HTML again
http://html5.org/tools/web-apps-tracker?from=6164&amp;to=6165</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>48999</commentid>
    <comment_count>8</comment_count>
    <who name="pmika">pmika</who>
    <bug_when>2011-06-01 09:52:05 +0000</bug_when>
    <thetext>Hi Ian,

Could you please clarify what is the dependency that you mean?

Based on what Aryeh and Mike said I would have expected some additional text in the HTML Microdata document that spells out explicitly that &lt;link&gt; and &lt;meta&gt; are allowed in HTML5+Microdata... otherwise the reader of the spec learns only from an example that this is the case... but then he/she might also wonder what else is allowed in HTML5+Microdata that is not allowed in HTML5. For one, I don&apos;t know the answer... is it just &lt;link&gt; and &lt;meta&gt;?

Therefore I still consider this a (documentation) bug.

Thanks,
Peter</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>49000</commentid>
    <comment_count>9</comment_count>
    <who name="Simon Pieters">zcorpan</who>
    <bug_when>2011-06-01 10:05:39 +0000</bug_when>
    <thetext>See http://dev.w3.org/html5/md/#content-models</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>49002</commentid>
    <comment_count>10</comment_count>
    <who name="pmika">pmika</who>
    <bug_when>2011-06-01 10:13:34 +0000</bug_when>
    <thetext>Perfect, thanks! Closing.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>52955</commentid>
    <comment_count>11</comment_count>
    <who name="Michael[tm] Smith">mike</who>
    <bug_when>2011-08-04 05:05:36 +0000</bug_when>
    <thetext>mass-move component to LC1</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>