title: How to resolve validations errors on w3 validation in Rails 3.1 templates? ("Attribute itemscope not allowed on element ____ at this point")
body: <p>I'm working in some HAML views that have included the following in the application.html.haml view:</p>
  
  <pre><code>!!!
  %html{ :itemscope =&gt; "", :itemtype =&gt; "http://schema.org/Product" }
    %head
      &lt;meta charset="utf-8"&gt;
      %title= page_title
      %meta{ :name =&gt; "description", :content =&gt; "Some desc." }
      %meta{ :name =&gt; "keywords", :content =&gt; "key words, aplenty." }
      %meta{ :name =&gt; "author", :content =&gt; "A Name" }
      %meta{ :itemprop =&gt; "name", :content =&gt; "Some website" }
      %meta{ :itemprop =&gt; "description", :content =&gt; "Some desc." }
      %meta{ :itemprop =&gt; "image", :content =&gt; "http://domain.tld/image.png" }
      ...
  </code></pre>
  
  <p>Yet in <a href="http://validator.w3.org" rel="nofollow">http://validator.w3.org</a> I get quite a few errors such as:</p>
  
  <pre><code>Attribute itemscope not allowed on element html at this point. &lt;html itemscope='' itemtype='http://schema.org/Product'&gt;   
  Attribute itemtype not allowed on element html at this point. &lt;html itemscope='' itemtype='http://schema.org/Product'&gt;
  Attribute itemprop not allowed on element meta at this point. &lt;meta content='Some website' itemprop='name'&gt;
  Element meta is missing one or more of the following attributes: http-equiv, name. &lt;meta content='Some website' itemprop='name'&gt;
  ... these errors go on and on...
  </code></pre>