input type=month element test

Pass Criteria

Reference

Test mi-001: Unlabelled input type="month"

Code

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

Test mi-002: Input type="month" with aria-label

Aria-label should be used as accessible name

No accessible description.

Code

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

Test mi-003: Input type="month" with aria-labelledby

p referenced by aria-labelledby

Aria-labelledby should be used as accessible name

No accessible description.

Code

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

Test mi-004: Input type="month" with label

Label should be used as accessible name

No accessible description.

Code

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

Test mi-005: Input type="month" with title attribute

Title should be used as accessible name

No accessible description.

Code

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

Test mi-006: Input type="month" with aria-describedby

p referenced by aria-describedby

Aria-describedby should be used as accessible description

No accessible name.

Code

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

Test mi-007: Input type="month" 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="month" title="title attribute" />