Spørsmål

Testar på krav:

  • 3.3.1 Identifikasjon av feil

Innhaldstype:

Krav til samsvar:

Applicability

This rule applies to each HTML element that has one of the following semantic roles:

  • checkbox,
  • combobox,
  • listbox,
  • menuitemcheckbox,
  • menuitemradio,
  • radio,
  • searchbox,
  • slider,
  • spinbutton,
  • switch or
  • textbox.

Note: The list of applicable semantic roles is derived by taking all the ARIA 1.1 roles that:

Expectation 1

Each test target either has no form field error indicators, or at least one of the form field error indicators allows the identification of the related test target, through text, or through non-text content, or through presentation.

Note: This rule does not test form field error indicators shown on a different page than that of the test target.

Note: A single form field error indicator can be related to multiple test targets. For example, an error message at the top of a form can list all the form fields that are required and are empty.

Note: A single test target can be related to multiple form field error indicators. For example, a text field can have a red border around it, an error icon adjacent to it, an error message below it, and another error message at the top of the form. All of these are error indicators for the same form field.

Expectation 2

Each test target either has no form field error indicators, or at least one of the form field error indicators describes:

  • the cause of the error, or
  • how to resolve it,

in text that is visible.

Expectation 3

Each test target either has no form field error indicators, or at least one of the form field error indicators describes:

  • the cause of the error, or
  • how to resolve it,

in text that is included in the accessibility tree or included in the accessible name or accessible description of the test target.