This Wiki page is edited by participants of the WCAG Working Group. It does not necessarily represent consensus and it may have incorrect information or information that is not supported by other Working Group participants, WAI, or W3C. It may also have some very useful information.

Difference between revisions of "F38: Failure of Success Criterion 1.1.1 due to not marking up decorative images in HTML in a way that allows Assistive technology to ignore them"

From WCAG WG
Jump to: navigation, search
(Status)
(Status)
Line 6: Line 6:
 
* Note change in title of failure
 
* Note change in title of failure
 
* Need to investigate if aria-hidden can also be used.
 
* Need to investigate if aria-hidden can also be used.
 +
* Surveyed by TF [https://www.w3.org/2002/09/wbs/35422/20130502tfaria2/results#xalertdia More ARIA techniques for 02 May 2013]
  
 
==Applicability==
 
==Applicability==

Revision as of 22:04, 20 June 2013


Status

Applicability

HTML and XHTML

This failure relates to:

  • Success Criterion 1.1.1 (Non-text Content)
    • How to Meet 1.1.1 (Non-text Content)
    • Understanding Success Criterion 1.1.1 (Non-text Content)

Description

This describes a failure condition for text alternatives for images that should be ignored by assistive technology (AT). If an image has the attribute role=presentation, it will be ignored by AT. However, if it does not have role=presentation, and if there is no alt attribute at all assistive technologies are not able to ignore the image. In this case, the alt attribute must be provided and have a null value (i.e., alt="") to avoid a failure of this Success Criterion.

Examples

  • Failure Example 1: Decorative images that have no alt attribute and no role attribute

Resources

No resources available for this technique.

Related Techniques

(none currently listed)

Tests

Procedure

For any img or applet element that is used for purely decorative content:

  1. Check whether this element has the attribute role=presentation.
  2. Check whether the alt attribute for this element exists.
  3. Check whether the alt attribute for this element is null.

Expected Results

  • If step #1 is false, and if step #2 or step #3 is false, this failure condition applies and content fails the Success Criterion.