News for hackers. Stuff that matters.
Re:HTML Form Validation is heavily underused by kaoD on Tuesday October 29, 2024 @02:03PM (#41987540)
> You can read directly from the input's ValidityState (input.validity)

Feels like I don't gain much from that. Native validation is very limited and the few cases that it covers are super simple to implement already. Am I missing something?

I'd rather have a `validateSomething` which returns a discriminated union of error causes than using `pattern` and just getting a boolean.

> In my project I have a "HiddenValidationInput" component

Yeah, that's an accessibility issue (and the UX for the common user is terrible too for multiple reasons).

There are no comments on this comment yet.