input type=time element

Pass Criteria

Reference

Test ti-001: Unlabelled input type="time"

Code

<input id="input1" type="time" />

Test ti-002: Input type="time" with aria-label

Aria-label should be used as accessible name

No accessible description.

Code

<input id="input2" type="time" aria-label="aria-label attribute" />

Test ti-003: Input type="time" with aria-labelledby

p referenced by aria-labelledby

Aria-labelledby should be used as accessible name

No accessible description.

Code

<p id="ti-003-labelledby">p referenced by aria-labelledby</p>
<input id="input3" type="time" aria-labelledby="ti-003-labelledby" />

Test ti-004: Input type="time" with label

Label should be used as accessible name

No accessible description.

Code

<label>label wrapping input <input id="input4" type="time" /></label>

Test ti-005: Input type="time" with title attribute

Title should be used as accessible name

No accessible description.

Code

<input id="input5" type="time" title="title attribute" />

Test ti-006: Input type="time" with aria-describedby

p referenced by aria-describedby

Aria-describedby should be used as accessible description

No accessible name.

Code

<input id="input6" type="time" aria-describedby="ti-006-describedby" />
<p id="ti-006-describedby">p referenced by aria-describedby</p>

Test ti-007: Input type="time" with label element & title attribute

Label should be used as accessible name

Title should be used as accessible description

Code

<label for="input7">label referenced by for/id attributes</label>
<input id="input7" type="time" title="title attribute" />