Join Nostr
2024-11-02 00:43:05 UTC

Philip on Nostr: I read a blog post today that was happily explaining how you can use built-in browser ...

I read a blog post today that was happily explaining how you can use built-in browser APIs to do form validation. Right out of the gate the example used was
`<input required={true} />`
Uh oh. That’s not a plain browser API.

Further down was code to customise validation using `setCustomValidity()` except everything was wired up using React (I think), not vanilla JS.

#webDev… (1/2)