blob: 3d4446462a03bf0eb122eb8661ec6af8165bea30 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
|
{ 'name': 'Header Rule Set'
, 'description': 'Simple rules about HTML headers.'
, 'rules':
[
//---
{ 'id': 4121501
, 'name': 'Disallow Empty Headers'
, 'description': 'Heading elements should contain text.'
, 'rule': function() {
fiveui.query(':header').each(function(ix, elt) {
if ($(elt).text() == '') {
report('Heading does not contain text', elt);
}
});
}
}//,
//---
]
}
|