Testing the required attribute in Chrome
Note: these results are specific to Chrome. Behaviour may differ in other browsers and browser/screen reader combinations.
All form controls are defined using the required attribute. In Chrome's accessibility tree, all form controls:
- Should be defined as:
Required: true. - Should be defined as:
Invalid user entry: false.
The <input type="email"> element:
- PASS: Registers the
requiredattribute. - PASS: Registers as
Invalid user entry: false.
The <input type="number"> element:
- PASS: Registers the
requiredattribute. - PASS: Registers as
Invalid user entry: false.
The <input type="password"> element:
- PASS: Registers the
requiredattribute. - PASS: Registers as
Invalid user entry: false.
The <input type="tel"> element:
- PASS: Registers the
requiredattribute. - PASS: Registers as
Invalid user entry: false.
The <input type="text"> element:
- PASS: Registers the
requiredattribute. - PASS: Registers as
Invalid user entry: false.
The <input type="url"> element:
- PASS: Registers the
requiredattribute. - PASS: Registers as
Invalid user entry: false.
The <textarea> element:
- PASS: Registers the
requiredattribute. - PASS: Registers as
Invalid user entry: false.
The <input type="radio"> element:
- FAIL: Does not register the
requiredattribute. - PASS: Registers as
Invalid user entry: false.
The <input type="search"> element:
- FAIL: Does not register the
requiredattribute. - PASS: Registers as
Invalid user entry: false.
The <input type="checkbox"> element:
- FAIL: Does not register the
requiredattribute. - FAIL: Incorrectly registers as
Invalid user entry: true.
The <input type="date"> element:
- FAIL: Does not register the
requiredattribute. - FAIL: Incorrectly registers as
Invalid user entry: true.
The <input type="datetime-local"> element
- FAIL: Does not register the
requiredattribute. - FAIL: Incorrectly registers as
Invalid user entry: true.
The <input type="file"> element:
- FAIL: Does not register the
requiredattribute. - FAIL: Incorrectly registers as
Invalid user entry: true.
The <input type="month"> element:
- FAIL: Does not register the
requiredattribute. - FAIL: Incorrectly registers as
Invalid user entry: true.
The <input type="time"> element:
- FAIL: Does not register the
requiredattribute. - FAIL: Incorrectly registers as
Invalid user entry: true.
The <input type="week"> element:
- FAIL: Does not register the
requiredattribute. - FAIL: Incorrectly registers as
Invalid user entry: true.
The <select> element:
- FAIL: Does not register the
requiredattribute. - FAIL: Incorrectly registers as
Invalid user entry: true.