Я работаю в некоторых представлениях HAML, которые включают следующее в представление application.html.haml:
!!!
%html{ :itemscope => "", :itemtype => "http://schema.org/Product" }
%head
<meta charset="utf-8">
%title= page_title
%meta{ :name => "description", :content => "Some desc." }
%meta{ :name => "keywords", :content => "key words, aplenty." }
%meta{ :name => "author", :content => "A Name" }
%meta{ :itemprop => "name", :content => "Some website" }
%meta{ :itemprop => "description", :content => "Some desc." }
%meta{ :itemprop => "image", :content => "http://domain.tld/image.png" }
...
И все же в http://validator.w3.org я получаю довольно много ошибок, таких как:
Attribute itemscope not allowed on element html at this point. <html itemscope='' itemtype='http://schema.org/Product'>
Attribute itemtype not allowed on element html at this point. <html itemscope='' itemtype='http://schema.org/Product'>
Attribute itemprop not allowed on element meta at this point. <meta content='Some website' itemprop='name'>
Element meta is missing one or more of the following attributes: http-equiv, name. <meta content='Some website' itemprop='name'>
... these errors go on and on...