HTML Validation Error: Bad value tooltip for attribute rel on element a: Keyword tooltip is not registered

StackOverflow https://stackoverflow.com/questions/12963361

  •  08-07-2021
  •  | 
  •  

문제

Should I be concerned with 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.
도움이 되었습니까?

해결책

The rel value tooltip is not allowed in HTML5.

You can use the rel values listed in the HTML5 spec, or the registered rel values in the microformats wiki.

Note that tooltip is listed in the microformats wiki (in the POSH usage section), but not in the section "HTML5 link type extensions".

다른 팁

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

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

example:

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

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top