blob: 4d2db4683285a00c7fb1fbe8d5ff5af1d1ae56e8 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
|
exports.name = "Don't use empty headings";
exports.description = 'Empty headings confuse layout';
exports.rule =
function() {
var that = this;
fiveui.query(':header').each(
function(i, elt) {
if ($(elt).text() == '') {
that.report('Heading is empty', elt);
}
}
);
};
|