blob: ad6290de2725785d8e55482b626075b669099519 (
plain)
1
2
3
4
5
6
7
8
9
10
11
|
exports.name = "Don't use empty hrefs";
exports.description = "Links with no text can't generally be used";
exports.rule =
function(report) {
fiveui.query('a').each(
function(i, elt) {
if ($(elt).text() == '' && elt.title == '') {
report.error('Link has no text', elt);
}
});
};
|