diff options
Diffstat (limited to 'exampleData/ruleSets/basic/emptyHrefs.js')
-rw-r--r-- | exampleData/ruleSets/basic/emptyHrefs.js | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/exampleData/ruleSets/basic/emptyHrefs.js b/exampleData/ruleSets/basic/emptyHrefs.js index 2be60f2..ad6290d 100644 --- a/exampleData/ruleSets/basic/emptyHrefs.js +++ b/exampleData/ruleSets/basic/emptyHrefs.js @@ -1,12 +1,11 @@ exports.name = "Don't use empty hrefs"; exports.description = "Links with no text can't generally be used"; exports.rule = - function() { - var that = this; + function(report) { fiveui.query('a').each( function(i, elt) { if ($(elt).text() == '' && elt.title == '') { - that.report('Link has no text', elt); + report.error('Link has no text', elt); } }); }; |