diff options
Diffstat (limited to 'guidelines/wikipedia/strikeout.js')
-rw-r--r-- | guidelines/wikipedia/strikeout.js | 14 |
1 files changed, 0 insertions, 14 deletions
diff --git a/guidelines/wikipedia/strikeout.js b/guidelines/wikipedia/strikeout.js deleted file mode 100644 index e1e3856..0000000 --- a/guidelines/wikipedia/strikeout.js +++ /dev/null @@ -1,14 +0,0 @@ -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); - $5('#mw-content-text span').filter(function(i, s) { - return (/line-through/).test($(s).css('text-decoration')); - }).each(err); -}; |