From 86d49c07d3d1406bd56352869dae9eaf4d075e27 Mon Sep 17 00:00:00 2001 From: Benjamin Jones Date: Fri, 16 Aug 2013 15:13:42 -0700 Subject: WCAG 1.0 guidelines 6 and 7 --- guidelines/WCAG-1.0/guideline-7.js | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 guidelines/WCAG-1.0/guideline-7.js (limited to 'guidelines/WCAG-1.0/guideline-7.js') diff --git a/guidelines/WCAG-1.0/guideline-7.js b/guidelines/WCAG-1.0/guideline-7.js new file mode 100644 index 0000000..edc2d87 --- /dev/null +++ b/guidelines/WCAG-1.0/guideline-7.js @@ -0,0 +1,28 @@ +exports.name = "WCAG 1.0 Guideline 6: Time Sensitive Content Changes"; +exports.description = "Web Accessibility Guideline: Ensure user control of" + + "time-sensitive content changes."; +exports.rule = function(report) { + + /* + * Note: the rules contained in this file check properties of elements that + * are not supported under HTML5 + */ + + /* Checkpoint 7.2 *********************************************************** + * + * Avoid causing content to blink. + * + * Note: the BLINK and MARQUEE tags are not standard HTML, but were somewhat + * common once upon a time. + */ + + $5('blink,marquee').each(function () { + report.warning('BLINK and MARQUEE are non-standard HTML elements', this); + }); + + $5('*').cssIs('text-decoration', 'blink').each(function () { + report.warning('Avoid causing content to blink', this); + }); + +}; + -- cgit v1.2.3