尝试在Joomla 2.5站点上验证HTML5,但是我有一些元问题 [英] Trying to validate HTML5 on Joomla 2.5 site but I have some meta-problems

查看:100
本文介绍了尝试在Joomla 2.5站点上验证HTML5,但是我有一些元问题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我目前正在尝试清理Joomla 2.5网站以进行HTML5验证,但是我遇到了问题.

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

HTML5验证器报告以下错误:

The HTML5 validator is reporting the following errors:

元素meta上属性名称的值og:title不正确:关键字og:title未注册."

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

元素meta上属性名称的值og:type错误:关键字og:type未注册"

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

元素meta上属性名称的值og:url不正确:关键字og:url未注册"

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

元素元上的属性名称的值og:site_name值错误:关键字og:site_name未注册"

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

我发现,仅在链接到文章菜单项的页面上生成元名称属性"og:xxxx".不幸的是,首页链接到这样的菜单项,我不知道"og:"部分是从哪里来的.

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.

我已经尝试过用Google搜索这个问题,我唯一能想到的是它与Open Graph有关.

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

我希望有人可以帮助我解决此问题.

I hope that someone can help me fix this issue.

推荐答案

og:titleog:typeog:urlog:site_name开放图谱协议.

如果您的主题中没有对它们进行硬编码,则可能是来自插件(查找"Facebook","Share"或"SEO"插件).

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

但是:使用这些name不是无效!它们在WHATWG Wiki中的 MetaExtensions中注册,这使它们有效

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.

这篇关于尝试在Joomla 2.5站点上验证HTML5,但是我有一些元问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆