Asqatasun v4 - RGAA 3.2016 - Rule 1.8.2
Summary
This test consists in detecting informative image buttons in form and thus defining the applicability of the test.
Human check will be then needed to determine whether the detected elements containing text can be replaced by styled text.
Business description
Criterion
Test
Description
input
avec l’attribut type="image"
) porteur d’information, en l’absence d’un mécanisme de remplacement, doit si possible être remplacé par du texte stylé. Cette règle est-elle respectée (hors cas particuliers) ?Level
AA
Technical description
Scope
Page
Decision level
Semi-Decidable
Algorithm
Selection
Set1
All the <input>
tags with a "type"
attribute equals to "image" not identified as captcha (see Notes about captcha detection)
Set2
All the elements of Set1 identified as informative image by marker usage (see Notes for details about detection through marker)
Set3
All the elements of Set1 identified neither as informative image, nor as decorative image by marker usage (see Notes for details about detection through marker)
Process
Test1
For each element of Set2, raise a MessageA
Test2
For each element of Set3, raise a MessageB
MessageA : Check text styled presence of informative image
- code : CheckStyledTextPresenceOfInformativeImage
- status: Pre-Qualified
- parameter :
"src"
attribute, tag name, snippet - present in source : yes
MessageB : Check nature of image and text styled presence
- code : CheckNatureOfImageAndStyledTextPresence
- status: Pre-Qualified
- parameter :
"src"
attribute, tag name, snippet - present in source : yes
Analysis
Not Applicable
The page has no button image in form (Set1 is empty)
Pre-Qualified
In all other cases
Notes
Markers
Informative images markers are set through the INFORMATIVE_IMAGE_MARKER parameter.
Decorative images markers are set through the DECORATIVE_IMAGE_MARKER parameter.
The value(s) passed as marker(s) will be checked against the following attributes:
class
id
role
Captcha detection
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