blob: a3338423f44f93c3b76c0fda07b8aad7cdb0c3e9 (
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);
}
});
};
|