input type=tel element test

Pass Criteria

Reference

Test tl-001: Unlabelled input type="tel"

Code

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

Test tl-002: Input type="tel" with aria-label

Aria-label should be used as accessible name

No accessible description.

Code

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

Test tl-003: Input type="tel" with aria-labelledby

p referenced by aria-labelledby

Aria-labelledby should be used as accessible name

No accessible description.

Code

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

Test tl-004: Input type="tel" with label

Label should be used as accessible name

No accessible description.

Code

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

Test tl-005: Input type="tel" with title attribute

Title should be used as accessible name

No accessible description.

Code

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

Test tl-006: Input type="tel" with aria-describedby

p referenced by aria-describedby

Aria-describedby should be used as accessible description

No accessible name.

Code

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

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

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