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

once you grasp the ergonomics of setCustomValidity() you can go crazy e.g. pass it a multitude of validation rules per input field.

unfortunately you’re sort of back to square one if you want to implement warnings (ie suboptimal inputs but still workable).

Edit: While grasping the ergonomics produces euphoria like solving a complex puzzle it’s also a hint at the pain un-initiated colleagues will feel when tasked with maintaining the code.



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

Search: