Last updated:

Created by:

Success Criterion:

Description

This rule checks that each aria- attribute specified is defined in ARIA 1.1

Accessibility Requirements

This conformance rule relates to:

Test procedure

Applicability

Any attribute that starts with aria-.

Expectation

Each target attribute is defined in WAI ARIA 1.1.

Assumptions

There are currently no assumptions.

Accessibility Support

There are no major accessibility support issues known for this rule.

Background

Test cases

Passed

Passed example 1

A valid ARIA 1.1 attribute aria-atomic is used on element article.

Code Snippet:
 <article aria-atomic>This is a decription of something cool...</article>
 
Example Output: Open in a new tab/ window

Passed example 2

A valid ARIA 1.1 attribute aria-modal on element div with role dialog

Code Snippet:
 <div role="dialog" aria-modal>Contains modal content...</div>
 
Example Output: Open in a new tab/ window

Passed example 3

A valid ARIA 1.1 attribute aria-live on element div with role alert

Code Snippet:
 <div role="alert" aria-live="assertive">Your session will expire in 60 seconds.</div>
 
Example Output: Open in a new tab/ window

Passed example 4

Muliple valid ARIA 1.1 attributes aria-* are specified on element input with role spinbutton

Code Snippet:
 <input
  role="spinbutton"
  aria-valuemax="100"
  aria-valuemin="0"
  aria-valuenow="25"
  type="number"
  value="25">
 
Example Output: Open in a new tab/ window

Failed

Failed example 1

aria-not-checked is not a defined attribute in ARIA 1.1.

Code Snippet:
 <li role="menuitemcheckbox" aria-not-checked="true">List Item</li>
 
Example Output: Open in a new tab/ window

Failed example 2

aria-labelled is not a defined attribute in ARIA 1.1.

Code Snippet:
 <span id="label">Birthday:</span>
<div contenteditable role="searchbox" aria-labelled="label" aria-placeholder="MM-DD-YYYY">01-01-2019</div>
 
Example Output: Open in a new tab/ window

Inapplicable

Inapplicable example 1

Element without aria-* attribute.

Code Snippet:
 <canvas>
</canvas>
 
Example Output: Open in a new tab/ window

Test Aspects

Test aspects are defined as part of the ACT Rules format 1.0.
  • DOM Tree

Contribute






GitHub

Contributing is open to anyone. We welcome any new issues or pull requests for changes. Auto WCAG Rules has conference calls every 4 weeks. If you are interested in becoming an active contributor or reviewer, we ask that you join the Auto WCAG Rules community group through the W3C Website. This requires setting up a W3C account, may require approval by the organization you work for if they are a W3C member.

Learn more about contributing to Auto WCAG Rules Join the Auto WCAG Rules community group now!