input type=email element test

Pass Criteria

Reference

Test ei-001: Unlabelled input type="email"

Code

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

Test ei-002: Input type="email" with aria-label

Aria-label should be used as accessible name

No accessible description.

Code

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

Test ei-003: Input type="email" with aria-labelledby

p referenced by aria-labelledby

Aria-labelledby should be used as accessible name

No accessible description.

Code

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

Test ei-004: Input type="email" with label

Label should be used as accessible name

No accessible description.

Code

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

Test ei-005: Input type="email" with title attribute

Title should be used as accessible name

No accessible description.

Code

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

Test ei-006: Input type="email" with aria-describedby

p referenced by aria-describedby

Aria-describedby should be used as accessible description

No accessible name.

Code

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

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

Note: placeholder and aria-placeholder are tested as part of the placeholder attribute test.