WebAIM - Web Accessibility In Mind

E-mail List Archives

Re: List with Checkboxes & Links

for

From: _mallory
Date: Apr 2, 2015 11:01AM


On Wed, Apr 01, 2015 at 08:14:59PM +0000, Moore,Michael (DARS) wrote:
> That sounds correct
>
> Sample code
>
> ...<td><input type="check" aria-labelledby="p1" .../></td><td><a href... id="p1">John Doe</a><td>...
>
>
> The screen reader would say "John Doe Checkbox Not checked"

Wait, would this then be needed for the common case of labels for
checkboxes that do something like
<label for="foo">I agree to the <a href="tc.html">terms and conditions</a> of the company</label>
<input type="checkbox" id="foo" name="bar">

Or is this somewhat different due to unequal label text vs link text?
_mallory