Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Username length does not "need" to be validated on the client. However, it is nice for UX to enforce it there.


I think a charitable reader could infer that this is often made a requirement out of UX concerns and therefore it “needs” to be done. Do you have a substantive objection to what I said?


a requirement that is solved by setting the length on your input field?

or have we forgotten that plain hold HTML can validate much of this for us with no JS of any type required?


There are limitations to that, as you well know, since you hedged with “much of.” And this is, again, a nitpick around the edges and not really a comment that addresses my main point.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: