News for hackers. Stuff that matters.
Re:Custom JavaScript controls can't capture the nuance of fo... by account42 on Friday February 25, 2022 @04:14AM (#30465220)
Throwing away keys is never the right thing to do anyway. If the user typed 5y8 you don't know if they meant 58 or if the y was meant to be a 6 or 7 so the best thing to do is to have the field contain the full user input and higlight the input as invalid rather than silently guessing what the user meant.
Re:Custom JavaScript controls can't capture the nuance of fo... by Sammi on Friday February 25, 2022 @11:38AM (#30469107)
Validate, don't parse ;p