aboutsummaryrefslogtreecommitdiff
path: root/guidelines/wikipedia/strikeout.js
blob: 46623a57deed10ddc03c778390f700be97606df8 (plain)
1
2
3
4
5
6
7
8
9
10
11
exports.name = "Don't use strikeout.";
exports.description = "By default, most screen readers do not indicate presentational text attributes (bold, italic, underline) or even semantic text attributes (emphasis, importance, text deletion), so struck-out text is read normally along with any other text.";

exports.rule = function (report) {
  var err = function(idx, elt) {
    report.error("Strikeout tags should not be used.", elt);
  };

  $5('#mw-content-text del').each(err);
  $5('#mw-content-text strike').each(err);
};