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