diff options
author | Rogan Creswick <creswick@gmail.com> | 2013-06-14 18:37:06 -0700 |
---|---|---|
committer | Rogan Creswick <creswick@gmail.com> | 2013-06-14 18:37:06 -0700 |
commit | b94c3562325c2e74bccb68c56dd10a1a5dad4791 (patch) | |
tree | b341209f849dc6790c71c64d2e2c5942956b70af /exampleData/ruleSets | |
parent | 29bb5e6e86d615e49b0c58413e4dc14e73230d97 (diff) |
minor cleanup of example data
Diffstat (limited to 'exampleData/ruleSets')
-rw-r--r-- | exampleData/ruleSets/basic/emptyHeadings.js | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/exampleData/ruleSets/basic/emptyHeadings.js b/exampleData/ruleSets/basic/emptyHeadings.js index 4d2db46..dbc8a1e 100644 --- a/exampleData/ruleSets/basic/emptyHeadings.js +++ b/exampleData/ruleSets/basic/emptyHeadings.js @@ -1,12 +1,13 @@ exports.name = "Don't use empty headings"; -exports.description = 'Empty headings confuse layout'; + +exports.description = "Empty headings confuse layout"; + exports.rule = - function() { - var that = this; - fiveui.query(':header').each( + function(report) { + $5(':header').each( function(i, elt) { if ($(elt).text() == '') { - that.report('Heading is empty', elt); + report.error('Heading is empty', elt); } } ); |