Why do you want to add an "error" class to the input? The error class is normally used for inputs. Perhaps I do not understand.
On Jan 15, 7:40 pm, David <[email protected]> wrote: > I was thinking about the form validation. > > I thought that it may be useful to include an "error" class on the input > widget when the form is submitted and has invalid data. > > ie. > > from > > <divclass="w2p_fw"> > <inputid="auth_user_password"class="password"type="password"value=""name="p > assword"> > <divid="password__error"class="error"style="display: block;">too short</div> > </div> > > to > > <divclass="w2p_fw"> > <inputid="auth_user_password"class="password > error"type="password"value=""name="password"> > <divid="password__error"class="error"style="display: block;">too short</div> > </div> > > Notice the error is the class of the input. > > I think this would be very useful and don't think it would break any > backwards compatibility. > > Thanks.

