WebAIM - Web Accessibility In Mind

E-mail List Archives

RE: Problem Getting 508 Validation with "label"

for

From: Christian Heilmann
Date: Apr 29, 2005 8:33AM


><!--
>> <!-- <h2 class="sidebar-title">Categories</h2> -->
>>
>> <form action="<?php echo $PHP_SELF ?>" method="get">
>> <h2 class="sidebar-title"><label for="categs">Categories</label></h2>
>> <p style="padding: 0px; margin: 0px;"><?php dropdown_cats(); ?>
>> <input type="submit" id="categs" name="submit" title="submit" value="GO" />
>> </form>
>> -->
>>
>> Or, you can see how this plays out by going to my home page and then
>> viewing the source code.
>>
>> Again, thanks very much for any suggestions you can offer. I'm very
>> close to 508 compliance, I would love to get this final bit.


You need to set the for attribute of the label to the select element,
not the submit button. For that you'd need to tweak the PHP of
wordpress as it only generates a name="cat" on the select, not an ID.

There are more problems though, like links that are not separated by
more than whitespace.
-- Chris Heilmann
Blog: http://www.wait-till-i.com
Writing: http://icant.co.uk/
Binaries: http://www.onlinetools.org/