W3 Accessibility Guidelines Original
Name, Role Value
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.
W3 Accessibility Guidelines alt1
4.1.2 Name, Role, Value
The name and role of a user interface component, including one that’s generated by script, can always be determined programmatically, States, properties, and values of a user interface component that the user can set can always be set programmatically. User agents, including browsers and assistive technologies, are always notified of changes to states, properties and values. (Level A)
Note: This success criterion is primarily for Web authors who develop or script user interface components. Standard HTML controls used according to specification meet this success criterion.