Search code examples
htmlvalidationjoomlajoomla2.5meta-tags

Trying to validate HTML on Joomla 2.5 site but I have some meta-problems


I´m currently trying to clean up a Joomla 2.5 site for HTML validation but I have a problem.

The HTML validator is reporting the following errors:

Bad value og:title for attribute name on element meta: Keyword og:title is not registered.

Bad value og:type for attribute name on element meta: Keyword og:type is not registered

Bad value og:url for attribute name on element meta: Keyword og:url is not registered

Bad value og:site_name for attribute name on element meta: Keyword og:site_name is not registered

I have found out that the meta name attribute "og:xxxx" is generated only on pages that are linked to an article menu item. Unfortunately the front page is linked to such a menu item and I don´t know were the "og:" part is coming from.

I have tried to Google the problem and the only thing I can think is that it has do with Open Graph.


Solution

  • og:title, og:type, og:url and og:site_name are values from the Open Graph protocol.

    If they are not hardcoded in your theme, they are probably coming from a plugin (look for "Facebook", "Share" or "SEO" plugins).

    However: Using these name values is not invalid! They are registered at MetaExtensions in the WHATWG wiki, which makes them valid according to the HTML5 spec. The validator is probably not up to date.