QuickForm accessibility
| From: | Lee Braiden | Date: | Mon, 28 Mar 2005 13:23:41 +0000 |
| Subject: | QuickForm accessibility | ||
| Groups: | php.pear.general | ||
| Request: | Send a blank email to pear-general+get-18374@lists.php.net to get a copy of this message | ||
Has anyone managed to generate WCAG AAA accessible forms with
HTML_QuickForm_IT?
I'm no accessiblity expert, but from reading the WCAG recommendations**, I
gather this would involve:
* Using proper label tags for the labels, and associating them with the form
input using the for="(inputid)" attribute.
* Using accesskey="(key)" attributes, and highlighting/underlining the
appropriate letter on a label with a span.
* Besides having a good label, also filling in the forms with default values
such as "Please enter your name here".
I had this working nicely by hand, but it would be much nicer to have this
with QuickForm's speed and advanced features like uploading.
Anyone figured this out already? If not, how would I go about hacking
QuickForm and the dynamic IT Form renderer to handle this?
** Recommendations are at: http://www.w3.org/TR/WCAG10-HTML-TECHS/#forms
--
Lee