This test consists in detecting captcha svg and thus defining the applicability of the test.
Human check will be then needed to determine whether the alternative is well rendered by assistive technologies.
For each vector image (svg tag), used as a CAPTCHA or test image, with a text alternative, is this alternative correctly rendered by assistive technologies?
<svg> tags of the page not within a link with a not empty
"aria-label" attribute or a not empty
<desc> child tag (css selector : svg[aria-label]:not([aria-label~=^\s*$]:not(a svg), svg:not(a svg):has(desc:not(:matchesOwn(^\s*$)))
All the elements of Set1 identified as a CAPTCHA (see Notes for details about CAPTCHA characterisation).
For each element of Set2, raise a MessageA
MessageA : Check captcha alternative restitution by assistive technologies
- code : CheckAtRestitutionOfAlternativeOfCaptcha
- status: Pre-Qualified
- parameter :
"aria-label"attribute, tag name, snippet
- present in source : yes
The page has no
<svg> tag with an
"aria-label" attribute or a
<desc> child tag identified as a captcha (Set2 is empty)
In all other cases
An element is identified as a CAPTCHA when the “captcha” occurrence is found :
- on one attribute of the element
- or within the text of the element
- or on one attribute of one parent of the element
- or within the text of one parent of the element
- or on one attribute of a sibling of the element
- or within the text of a sibling of the element