Accessibility Rules Covered
This article contains information about the rules and tags recognized by WAX Dev Testing Framework
Rules
WAX Dev checks source against the following rules:
| Rule Identifier | Rule Description |
|---|---|
| area-alt | Active area elements must have alternate text |
| aria-allowed-attr | Elements must only use allowed ARIA attributes |
| aria-command-name | ARIA commands must have an accessible name |
| aria-hidden-body | aria-hidden='true' must not be present on the document body |
| aria-hidden-focus | ARIA hidden element must not be focusable or contain focusable elements |
| aria-input-field-name | ARIA input fields must have an accessible name |
| aria-meter-name | ARIA meter nodes must have an accessible name |
| aria-progressbar-name | ARIA progressbar nodes must have an accessible name |
| aria-required-attr | Required ARIA attributes must be provided |
| aria-required-children | Certain ARIA roles must contain particular children |
| aria-required-parent | Certain ARIA roles must be contained by particular parents |
| aria-roledescription | aria-roledescription must be on elements with a semantic role |
| aria-roles | ARIA roles used must conform to valid values |
| aria-toggle-field-name | ARIA toggle fields must have an accessible name |
| aria-tooltip-name | ARIA tooltip nodes must have an accessible name |
| aria-valid-attr | ARIA attributes must conform to valid names |
| aria-valid-attr-value | ARIA attributes must conform to valid values |
| audio-caption | audio elements must have a captions track |
| blink | blink elements are deprecated and must not be used |
| button-name | Buttons must have discernible text |
| bypass | Page must have means to bypass repeated blocks |
| color-contrast | Elements must have sufficient color contrast |
| definition-list | dl elements must only directly contain properly-ordered dt and dd groups, script, template or div elements |
| dlitem | dt and dd elements must be contained by a dl |
| document-title | Documents must have title element to aid in navigation |
| form-field-multiple-labels | Form field must not have multiple label elements |
| frame-focusable-content | Frames with focusable content must not have tabindex=-1 |
| frame-title | Frames must have an accessible name |
| frame-title-unique | Frames must have a unique title attribute |
| html-has-lang | html element must have a lang attribute |
| html-lang-valid | html element must have a valid value for the lang attribute |
| html-xml-lang-mismatch | HTML elements with lang and xml:lang must have the same base language |
| image-alt | Images must have alternate text |
| input-button-name | Input buttons must have discernible text |
| input-image-alt | Image buttons must have alternate text |
| label | Form elements must have labels |
| link-in-text-block | Links must be distinguishable without relying on color |
| link-name | Links must have discernible text |
| list | ul and ol must only directly contain li, script or template elements |
| listitem | li elements must be contained in a ul or ol |
| marquee | marquee elements are deprecated and must not be used |
| meta-refresh | Delayed refresh under 20 hours must not be used |
| meta-viewport | Zooming and scaling must not be disabled |
| nested-interactive | Interactive controls must not be nested |
| no-autoplay-audio | video or audio elements must not play automatically |
| object-alt | object elements must have alternate text |
| p-as-heading | Styled p elements must not be used as headings |
| role-img-alt | [role='img'] elements must have an alternative text |
| scrollable-region-focusable | Scrollable region must have keyboard access |
| select-name | Select element must have an accessible name |
| server-side-image-map | Server-side image maps must not be used |
| svg-img-alt | svg elements with an img role must have an alternative text |
| table-fake-caption | Data or header cells must not be used to give caption to a data table. |
| td-has-header | Non-empty td elements in larger table must have an associated table header |
| td-headers-attr | Table cells that use the headers attribute must only refer to cells in the same table |
| th-has-data-cells | Table headers in a data table must refer to data cells |
| valid-lang | lang attribute must have a valid value |
| video-caption | video elements must have captions |