WebAIM - Web Accessibility In Mind

E-mail List Archives

"Evil" code (was using title attribute as form field label)

for

From: John Foliot
Date: Nov 7, 2011 6:42PM


As a follow on, the following evil code works just great in Firefox 7
using JAWS 12 (had to test it before I left the office):

<form action="">
<table role="presentation">
<tr>
<td><span id="bar">Birthday</span></td>
<td><input type="text" name="day" size="2" aria-labelledby="bar
day"> / </td>
<td><input type="text" name="month" size="2" aria-labelledby="bar
month"> / </td>
<td><input type="text" name="year" size="4" aria-labelledby="bar
year"></td>
</tr>
<tr>
<td></td>
<td><span id="day" aria-label="day as a 2 digit
value">DD</span></td>
<td><span id="month" aria-label="month as a 2 digit
value">MM</span></td>
<td><span id="year" aria-label="year as a 4 digit
value">YYYY</span></td>
</tr>
</table>
<input type="submit" value="Go">
</form>

JF