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