Is there a way to do input validation (either in terms of offering a warning or, even better, simply blocking the characters) in an HTML text box using only CSS—no JavaScript? I want to do this because:
- Some input validation ought to happen on client side
- JavaScript can be disabled (I myself run NoScript)
- I always consider it a matter of civility to do things in CSS before JavaScript if possible
I'm thinking especially of CSS3 because of its impressive capabilities.