HTML validation error: tooltip with bad value for rel attribute on element a: tooltip for keyword not registered

Should I be related to the following HTML validation error?

…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. 
+4
source share
2 answers

The value of rel tooltip not allowed in HTML5.

You can use the rel values ​​specified in the HTML5 specification , or register the rel values ​​in a wiki microformat file .

Please note that tooltip is listed in the microformats wiki file (in the POSH use section), but not in the "HTML5 link type extension" section.

+1
source

The "rel" value tooltip is not a valid attribute in html 5.

Replace the rel attribute with the data-rel rel attribute (which is absolutely valid) in your code.

Example:

$("a[rel]").tooltip(); up to $("a[data-rel]").tooltip();

+4
source

Source: https://habr.com/ru/post/1440650/


All Articles