WebAIM - Web Accessibility In Mind

E-mail List Archives

Another reason we can't rely on automated scans

for

From: Jeremy Echols
Date: Jun 14, 2019 3:37PM


I don't know if anybody else has run into this situation, but we're branding a product that generates the HTML through a terrifying combination of code and XSL transformation. One way in which it holds search form state is via hidden fields. By default, very few form fields are actually given labels, and this has required some tremendously painful hacks to both their core Java code and XSL files.

So we're labeling all the fields, and what do we discover? Though automated tools think the form fields have labels, actual use with NVDA and Firefox suggest the fields do *not* have labels. It turns out the hidden fields which hold onto search state are earlier in the DOM and use the fields' ids.

Of course if we required perfect HTML, this could never happen, but this particular product generates so much bad HTML we don't actually pay any attention to HTML errors anymore - we have no choice but to hope for the best when we do any tweaking.

Long story short: automated tools are still very easy to fool even in fairly trivial cases. Test manually!