Re: wrong validation of HTML+RDFa documents contains OpenGraph meta tags

szymon danielczyk, Wed, 5 May 2010 10:53:51 +0100:

> Here is an url example of such document
> http://www.imdb.com/title/tt0499549/
> 
> To validate it we force XHtml+RDFa doctype
> 
> The namespace is declared
> 
> <html xmlns:og="http://opengraphprotocol.org/schema/"
>       xmlns:fb="http://www.facebook.com/2008/fbml">

I suppose that you also declared the XHTML namespace ...

> and there are a few meta tags declared in such way
> <meta name="og:title" content="Avatar (2009)" />
> <meta name="og:site_name" content="IMDb" />
> 
> but there is no message indicates that there is something wrong with 
> this meta tags

The name attribute of the meta element, is more or less free form in 
HTML4/XHTML1.x. Thus there is nothing wrong with those meta tags. You 
can compare the issue to how the class attribute works: It would be 
completely OK to write <div class="og:title">, from the class 
attribute's point of view. But whether it would be any useful to do so, 
from OpenGraph's point of view, would have to be defined in the 
OpenGraph spec.

Thus, you must in principle use an OpenGraph validator to check that  
'og:title' and 'og:site_name' is used correctly - from OpenGraph's 
point of view.
-- 
leif halvard silli

Received on Saturday, 8 May 2010 15:07:18 UTC