aria-required

aria-required in the spec

To facilitate testing, there is no author-provided indication below of which fields are required. This uses only the ARIA attribute, or the HTML 5 attribute. The fields marked as required are Name, Email, and Confirm Email.

This is an HTML 5 page. According to the ARIA spec, if browsers implement ARIA for HTML 5, they won't need to support aria-required, because HTML 5 has its own attribute for this.

Test Using ARIA

Sample Code

<input type="text" name="Name:" id="name1" aria-required="true">

Test











Test Using HTML 5

Sample Code

<input type="text" name="Name:" id="name1" required>

Test











Results

Configuration Result Summary ARIA Result Summary HTML 5 Result Notes
JAWS 11 and IE 8 FAIL FAIL No Indication of Required Fields
JAWS 11 and FireFox 3.6 PASS FAIL For fields with aria-required visited with Tab key JAWS spoke the label, the type of form field "edit," and then "required".
WindowEyes 7.2 and IE 8 FAIL FAIL No Indication of Required Fields
WindowEye 7.2 and FireFox 3.6 PASS FAIL For fields with aria-required visited with Tab key WindowEyes spoke the type of form field "edit box," then "required" and then the label.
NVDA 2009.1 and IE 8 PASS FAIL For fields with aria-required visited with Tab key NVDA spoke the label, the type of form field "edit," and then "required".
NVDA 2009.1 and FireFox 3.6 PASS FAIL For fields with aria-required visited with Tab key NVDA spoke the label, the type of form field "edit," and then "required".
ZoomText Magnifier/Reader 9.19 and IE 8 FAIL FAIL No Indication of Required Fields
ZoomText Magnifier/Reader 9.19 and FireFox 3.6 PASS FAIL For fields with aria-required visited with Tab key ZoomText spoke the label, the type of form field "edit box," and then "required".