Date: May 6, 2021
The WCAG criterion that will be demonstrated include:
There are 3 different criteria that will be covered in this session. They deal with the following:
For this part of the audit you will need:
WCAG 4.1.1 through 4.1.3 cover the robustness of the code that makes up your website. It also covers custom elements and scripts to ensure that they are accessible. Finally, it covers status messages and screen reader accessibility.
Below is each criterion, a brief explanation of it, how to test for it and how to score it in your survey spreadsheet.
In content implemented using markup languages, elements have complete start and end tags, elements are nested according to their specifications, elements do not contain duplicate attributes, and any IDs are unique, except where the specifications allow these features.
On all pages.
Understanding Success Criterion 4.1.1
Step 1
Count the total number of lines of code. When using Google Chrome, right click and choose view page source. Each line of code has a number next to it. Scroll until the last line and take the number next to it.
Step 2
Use the W3C Mark-up Validation Service to test the html of the page. Take the number of errors and add it to the number of alerts.
Scoring is calculated using the following:
For all user interface components (including but not limited to: form elements, links and components generated by scripts), the name and role can be programmatically determined; states, properties, and values that can be set by the user can be programmatically set; and notification of changes to these items is available to user agents, including assistive technologies.
This success criterion is primarily for Web authors who develop or script their own user interface components. For example, standard HTML controls already meet this success criterion when used according to specification.
On all pages.
Understanding Success Criterion 4.1.2
Find out if the page has custom elements and scripts. For things like acordions, tab panels, toggle buttons etc. Do they have proper names, roles states and values?
When there are status messages that appear on the page without loading are automatically read out loud by screen readers without moving focus.
Modal dialogues do not count for this criterion. A modal dialogue moves screen reader focus when it appears. It traps keyboard focus inside until the user dismisses it. The message for leaving nyc.gov when going to an external website does not count for this criterion.
On pages that have status messages that appear without loading a new page.
Understanding Success criterion 4.1.3
If there are status messages that appear visually, they should be read a loud by screen readers.
Steps:
Please send me your spreadsheets with WCAG 1.1.1 through 4.1.3 filled in by our first review session on May 21st. For assistance, email Walei at wsabry@doitt.nyc.gov.