On 22 Apr 2007, at 01:07:15, Shaun wrote:

My colleague came up with the idea of
naming form elements in a certain way so we could determine what server side validation to use e.g. <input name='firstname:test:required' etc.. would be a required text input of name firstname. However I think this would not make
for a good label for attribute (for accessibility)

1. I assume I am right that for attributes on labels get read by screen
readers and messing these up would be wrong

The "for" attribute has the value of the "id" attribute of the associated control, not the "name" attribute. Despite Internet Explorer's inexplicable belief to the contrary, "id" and "name" are not the same thing.


Nick Fitzsimons

List Guidelines: http://webstandardsgroup.org/mail/guidelines.cfm
Unsubscribe: http://webstandardsgroup.org/join/unsubscribe.cfm

Reply via email to