我应该关注下面的HTML验证错误吗?
…rel="tooltip" data-placement="bottom" data-original-title="Permalink"></a></li>
Syntax of link type valid for <a> and <area>:
A whitespace-separated list of link types listed as allowed on <a> and <area> in the HTML specification or listed as an allowed on <a> and <area> on the Microformats wiki without duplicate keywords in the list. You can register link types on the Microformats wiki yourself.发布于 2012-10-19 18:45:56
HTML5中不允许使用rel值tooltip。
您可以使用rel values listed in the HTML5 spec或registered rel values in the microformats wiki。
请注意,tooltip在微格式维基(在POSH usage部分)中列出,但没有在"HTML5链接类型扩展“一节中列出。
发布于 2013-10-13 15:59:47
"rel“值工具提示不是html 5中的有效属性。
在代码中用data-rel属性(绝对有效)替换rel属性。
示例:
$("a[rel]").tooltip();到$("a[data-rel]").tooltip();
https://stackoverflow.com/questions/12963361
复制相似问题