Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
#1 2006-01-29 04:29:56
- semanio
- Member
- Registered: 2005-10-18
- Posts: 20
selectInput function lacks ID creation (causes WAI failure)
Hello,
I’m trying to get my site to meet the Web Accessibility Innitiative set forth by W3C. Let me explain.
I just had a recent client for whom I constructed a customized version of the zem_contact form. Within my plugin I used Textpatterns selectInput function to generate a dropdown list of listed staff members who could be e-mailed via the form. The form working fine and the only issue I have is that the selectInput function does not generate an ID attribute. This is neccessary to meet WAI for all form elements need to have descriptive labels. As I’m sure you know Labels require ID attributes and my suggestion would be to make an ID= that matches the name= attribute… here is the fix I’ve made manually and it would be wondeful if future releases of Textpattern had this as the default.
<label>On line 35 of txplib_forms.php add *id=”’.$name.’”*</label>
Many thanks and keep up the good work!
Sincerely,
Semanio
Last edited by semanio (2006-01-29 04:31:11)
Offline