aboutsummaryrefslogtreecommitdiff
path: root/exampleData/ruleSets/emptyHeadings.json
blob: 0b0020a501cb454a8c85fe1eea55fa86bc96c9c0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
{ "name": "Header Rule Set"
, "description": "Simple rules about HTML headers."
, "rules":
  [ { "id": 1, "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);
          }
        });
      }
    }
  ]
}