Warning:
This wiki has been archived and is now read-only.

Moved permanently 9

From Automated WCAG Monitoring Community Group
(Redirected from SC1-1-1-img-alt)
Jump to: navigation, search

Status

Draft


Description

This test checks that there are alt attributes in all img elements where those are needed (if it is a rendered image).

Background

Assumptions

This test makes no assumptions.

Test properties

Property Possible values
Success Criterion 1.1.1 Non-text Content
Test mode automatic
Test environment rendered page
Test subject single web page

Test procedure

Selector

Test mode: earl:automatic


Select the img element.

Step 1

Test mode: earl:automatic


  • If the img element is not rendered
    • Return SC111-img-altpass
Property Value
TestCase SC111-img-alt
Identifier SC111-img-altpass
Outcome passed
Pointer position
Info Alt attribute not needed for img is not rendered.


Step 2

Test mode: earl:automatic


  • If the img element does not contain an alt attribute
    • Return SC111-img-altfail
Property Value
TestCase SC111-img-alt
Identifier SC111-img-altfail
Outcome failed
ErrorMessage Img element has no alt attribute
Pointer position
Info


  • Else
    • Return SC111-img-altcanttell
Property Value
TestCase SC111-img-alt
id SC111-img-altcanttell
Outcome cantTell
ErrorMessage Human input required
Pointer position
Info Unable to automatically check that the value of the alt attribute properly describes the image.