Skip to main content
RAWEBA

How to test criterion 7.2 “For each script with an alternative, is this alternative relevant?”

WCAG references
  • 1.1.1 Non-text Content (A)
  • 4.1.2 Name, Role, Value (A)

Official methodology to test criterion 7.2

Test 1 (7.2.1)

  1. Find alternatives to JavaScript features
  2. Search the page for available alternatives to a JavaScript component or function.
  3. Deactivate JavaScript in the document and find the proposed alternatives.
  4. For each of the alternatives proposed, check that it provides access to the same content and similar functions.
  5. If this is the case, the test is validated.

Test 2 (7.2.2)

  1. Find all non-text elements in the document that have been updated by a JavaScript function.
  2. If the non-text element has an alternative, check that
    • the alternative is updated when the non-text content is updated;
    • the updated alternative is relevant.
  3. If this is the case, the test is validated.