Skip to content
This repository has been archived by the owner on Sep 24, 2019. It is now read-only.

Test for WCAG technique H67: Using null alt text and no title attribute on img elements for images that AT should ignore #206

Open
2 tasks
hannolans opened this issue Mar 19, 2014 · 1 comment

Comments

@hannolans
Copy link
Contributor

http://www.w3.org/TR/WCAG20-TECHS/H67.html
The purpose of this technique is to show how images can be marked so that they can be ignored by Assistive Technology.

If no title attribute is used, and the alt text is set to null (i.e. alt="") it indicates to assistive technology that the image can be safely ignored.

Note: Have a "null" alt attribute is not the same as having no alt attribute.

Test procedure

For each image that should be ignored:

  • Check that title attribute is either absent or empty.
  • Check that alt attribute is present and empty or contains only whitespace (but not nbsp)

Scope

Image

Applicable

Image that should be ignored

Not applicable

Image that conveys meaning

Related

F38 is counterpart of this test

Remarks

Is it testable that an image should be ignored or should we just test if this technique is used? As this is a technique, we should just check whether or not alt="" is used. If it's used, this is a pass, if this technique isn't used, it's a fail.

if we want to differentiate between n/a and fail, we could build a checker if an image should have an empty or non empty alt:

  • an image in a data table should have an description as that is normally used for a category (checked, unchecked etc)
  • an image in a list (definition list, ordered list) should have a descriptive tect
  • Images outside the content area could be ignored, as that is always decorative (logo and identity).
@hannolans
Copy link
Contributor Author

implemented in 'imgNonDecorativeHasAlt'. Non decorative is defined as >100x100px.
We could add the condition when the image is in a cell of a datatable.
We should map this test to H67

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants