💼 This rule is enabled in the 📋 template-lint-migration config.
Disallow invalid title attributes on link elements. The title should not be empty or the same as the link text.
This rule ensures that link titles provide additional context and are not redundant with the link text.
Examples of incorrect code for this rule:
<template>
<a href="/page" title="">Page</a>
</template>
<template>
<a href="/page" title="Page">Page</a>
</template>Examples of correct code for this rule:
<template>
<a href="/page" title="More information about page">Page</a>
</template>
<template>
<a href="/page">Page</a>
</template>- If the
titleattribute value is the same as or part of the link text, it's better to leave it out.