{"id":38,"date":"2015-04-23T00:00:08","date_gmt":"2015-04-23T00:00:08","guid":{"rendered":"https:\/\/www.w3.org\/community\/auto-wcag\/?p=38"},"modified":"2015-04-23T11:05:04","modified_gmt":"2015-04-23T11:05:04","slug":"accessibility-checkers-in-qa","status":"publish","type":"post","link":"https:\/\/www.w3.org\/community\/auto-wcag\/2015\/04\/23\/accessibility-checkers-in-qa\/","title":{"rendered":"Do Accessibility Checkers have a place in QA?"},"content":{"rendered":"<p>There are many great tools on the market that can check the accessibility of web pages. The <strong><a href=\"http:\/\/www.w3.org\/WAI\/ER\/tools\/\">Web Accessibility Evaluation Tools List<\/a><\/strong> is a great resource to find checkers for different types of content. Many of them focus on testing specific aspects of accessibility, such as color contrast or parsing. But some have a broader scope and will check many different aspects \u00a0and report the conformance to WCAG success criteria.<\/p>\n<p>I encourage all web professionals\u00a0to use an accessibility checker in their daily work. But as an accessibility auditor with 8 years of experience, I must confess that I don&#8217;t use any of these checkers myself. To test HTML pages, the only tools I use are a DOM inspector, a color analyzer and a validator. So why the difference?<\/p>\n<h2>Test Accuracy<\/h2>\n<p>Automated accessibility testing is tricky. WCAG was never designed to be automated. There is a good argument to be made that by definition, automated testing of accessibility is impossible. Think about it. If you want to test if some piece of content is accessible, you should compare the existing implementation to what the component should be like when it is accessible. To automate this, you need two things. You need to automatically determine what an accessible version would be like and you need some way to compare it to the current situation.<\/p>\n<p>The first part of this is important. Imagine a tool that could reliably determine what the text alternative of an image should be. We could compare that to the actual alternative and we would have our test, right? However, if there was such a tool, assistive technologies could also implement it. And if they did, we wouldn&#8217;t have an accessibility problem with text alternatives anymore.<\/p>\n<p>This idea seems to be true for most accessibility problems: If we can automatically determine the solution, the problem goes away. Because of this, accessibility checkers are mostly unable to determine if a success criteria was met, except where no assistive technologies are involved. But what our tools certainly can do, is to look for symptoms of accessibility barriers and fail a success criteria based on those.<\/p>\n<h2>Symptoms Of Inaccessibility<\/h2>\n<p>If you&#8217;ve done anything with HTML in the past 10 years, you probably know that you shouldn\u2019t \u00a0use the &lt;font&gt; element. It is an outdated solution to styling text. There is nothing inherently wrong about the &lt;font&gt; element, but many accessibility checkers flag the &lt;font&gt; element as an error. Why do that for an element that is not inherently inaccessible?<\/p>\n<p>One way you could use the &lt;font&gt; element to create an accessibility problem is the following:<\/p>\n<p><code>Pick a color:<br \/>\n&lt;button type=\u201dsubmit\u201d value=\u201dr\u201d&gt;&lt;font color=\u201dred\u201d&gt;A&lt;\/font&gt;&lt;\/button&gt;<br \/>\n&lt;button type=\u201dsubmit\u201d value=\u201dg\u201d&gt;&lt;font color=\u201dgreen\u201d&gt;B&lt;\/font&gt;&lt;\/button&gt;<\/code><\/p>\n<p>Here the font element is used to provide information, which is not available in text. This is a failure for criterion 1.4.1. A checker that fails the criterion for using the &lt;font&gt; element would be correct in doing so in this situation. It assumes the &lt;font&gt; element is often used to provide information that is not otherwise available and fails the criterion based on that assumption.<\/p>\n<p>Assumptions are the basis of automated accessibility tests. Checkers look for symptoms of accessibility barriers, such as the use of a &lt;font&gt; element, and assume they found a barrier. Every automated test I know of works on assumptions in one way or another. Even a test such as color contrast assumes there is no conforming alternative version. The important question then becomes: how accurate are these assumptions?<\/p>\n<h2>Dealing With Assumptions<\/h2>\n<p>Most tests in tools are based on the test designer&#8217;s experience with front end development practices. This experience greatly influences the accuracy of an accessibility checker. The required accuracy of the tests depends quite a lot on who is using the tool. For me, as an external accessibility auditor, I need a very high degree of accuracy. Double checking the results of a checker takes a lot of time, often more then it would to do the test manually. Therefore I tend not to use these tools.<\/p>\n<p>For web developers and QA teams accuracy is less of an issue. It may be okay to flag &lt;font&gt; elements as errors, as using them is not a good idea anyway. Similarly, you could fail &lt;table&gt; elements without &lt;th&gt; elements, or &lt;select&gt; elements with an onchange=\u201d\u201d attribute. There are many tests that checkers can use, that can be very meaningful to your organisation, without them always accurately identifying accessibility errors.<\/p>\n<h2>Conclusion<\/h2>\n<p>Accessibility checker tools are great! They provide a quick and relatively inexpensive way to find accessibility barriers on your website. They are useful during the development to encourage a style of coding that avoids accessibility barriers. They also provide a good starting point for anyone who wants to build accessibility into their quality assurance process, though they don\u2019t give you the whole picture.<\/p>\n<p>Accessibility checkers have limitations. Being aware of those means you can make better decisions about the tools you can use. The field of web accessibility has long been focused on manual audits, but there is a clear precedence for the use of tools. As long as we understand their limitations, we can manage them and get better and more efficient because of them.<\/p>\n<h1>About The Author<\/h1>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"right separator pic alignnone\" src=\"https:\/\/www.w3.org\/community\/auto-wcag\/files\/2015\/04\/wilco-small.jpg\" alt=\"Wilco Fiers\" width=\"85\" height=\"100\" \/>Wilco Fiers is a web accessibility consultant and auditor at <strong><a href=\"https:\/\/www.accessibility.nl\/english\" target=\"_blank\" rel=\"nofollow\">Accessibility Foundation NL<\/a><\/strong>. He is founder and chair of the Auto-WCAG community group. Wilco has participated in a variety of accessibility projects such as WAI-AGE, WAI-ACT and EIII as well as being a developer in open source projects such as QuailJS and WCAG-EM Report Tool.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>There are many great tools on the market that can check the accessibility of web pages. The Web Accessibility Evaluation Tools List is a great resource to find checkers for different types of content. Many of them focus on testing &hellip; <a href=\"https:\/\/www.w3.org\/community\/auto-wcag\/2015\/04\/23\/accessibility-checkers-in-qa\/\">Continue reading <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":6360,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_s2mail":"yes","footnotes":""},"categories":[3],"tags":[],"class_list":["post-38","post","type-post","status-publish","format-standard","hentry","category-column"],"_links":{"self":[{"href":"https:\/\/www.w3.org\/community\/auto-wcag\/wp-json\/wp\/v2\/posts\/38","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.w3.org\/community\/auto-wcag\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.w3.org\/community\/auto-wcag\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.w3.org\/community\/auto-wcag\/wp-json\/wp\/v2\/users\/6360"}],"replies":[{"embeddable":true,"href":"https:\/\/www.w3.org\/community\/auto-wcag\/wp-json\/wp\/v2\/comments?post=38"}],"version-history":[{"count":6,"href":"https:\/\/www.w3.org\/community\/auto-wcag\/wp-json\/wp\/v2\/posts\/38\/revisions"}],"predecessor-version":[{"id":45,"href":"https:\/\/www.w3.org\/community\/auto-wcag\/wp-json\/wp\/v2\/posts\/38\/revisions\/45"}],"wp:attachment":[{"href":"https:\/\/www.w3.org\/community\/auto-wcag\/wp-json\/wp\/v2\/media?parent=38"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.w3.org\/community\/auto-wcag\/wp-json\/wp\/v2\/categories?post=38"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.w3.org\/community\/auto-wcag\/wp-json\/wp\/v2\/tags?post=38"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}