Hello,

I understand that open graph should be embedded on the page like the following:
(as per this link: http://http://ogp.me/)

<meta property="og:title" content="The Rock" />
<meta property="og:type" content="movie" />
<meta property="og:url" content="http://www.imdb.com/title/tt0117500/" />
<meta property="og:image" content="http://ia.media-imdb.com/images/rock.jpg" />

However, the above is invalid HTML5. HTML5 requires a name/content attributes. OG on the other hand uses the property/content attributes.

This problem has caused W3C to return validation errors on the site.

Is it correct to just use the "name" attribute in Metatag Open Graph module? I can submit a path for this and seems to work - w3c validates it okay. I'm not sure if this is okay with OG.

Thanks. Tim

Comments

Version:7.x-1.0-beta7» 7.x-1.x-dev
Priority:Major» Normal
Status:Needs review» Active

The Open Graph standards dictate how they should work, but I'm not opposed to improving the output if needed. What validator are you using?

FYI, please leave new tickets in "open" status unless you happen to upload a patch, in which case set it to "needs review"; also, support requests should be marked as "normal" priority. Thanks :)

Hello Damien,

Noted. The validator I am using is W3 validator and also the NU markup validation service of W3.

Thanks.

Tim

I don't get this error when I validate my site with the Nu validator:

http://validator.w3.org/nu/?showsource=yes&doc=http%3A%2F%2Fmc-kenna.com%2F

(yes, there are a bunch of other errors, but nothing related to OG)

What base theme are you using? Did you override the html.tpl.php file?

Issue summary:View changes

I believe this not being incorrectly set in metatag module as I have Adaptive Theme and it appears that they are set in there.