W3C home > Mailing lists > Public > www-validator@w3.org > May 2010

(unknown charset) Re: wrong validation of HTML+RDFa documents contains OpenGraph meta tags

From: (unknown charset) Leif Halvard Silli <xn--mlform-iua@xn--mlform-iua.no>
Date: Sat, 8 May 2010 17:06:43 +0200
To: (unknown charset) szymon danielczyk <szymon.danielczyk@deri.org>
Cc: (unknown charset) www-validator@w3.org
Message-ID: <20100508170643635268.ee149aa7@xn--mlform-iua.no>
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 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Wednesday, 25 April 2012 12:14:40 GMT