blob: 466f46eb9fe865e220940690081afa889323df44 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
|
exports.name = "Disallow Empty Headers";
exports.description = "Heading elements should contain text.";
exports.rule = function() {
var r = this;
fiveui.query(':header').each(
function(ix, elt) {
if($(elt).text() == '') {
r.report('Heading does not contain text', elt);
}
});
};
|