quailjs / quail

Accessibility testing in the browser and on the server.
http://quailjs.org
Other
300 stars 44 forks source link

Test for WCAG success criterion 4.1.2: Name, Role, Value #196

Open hannolans opened 10 years ago

hannolans commented 10 years ago

http://www.w3.org/TR/UNDERSTANDING-WCAG20/ensure-compat-rsv.html

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. (Level A)

Note: 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.

Failures

(HTML)

Special situation: If using script or code to re-purpose a standard user interface component in a markup language:

attiks commented 10 years ago

F20: Not updating text alternatives when changes to non-text content occur is not really related to labels and form elements, TBD

ref: http://www.w3.org/TR/2013/NOTE-WCAG20-TECHS-20130905/F20