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="password">
<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.