2 ms·
What do you mean there's no real benefit? You give the same error messages based on whatever custom validation and control the output.
by epolanski 2y ago
What do you mean there's no real benefit?
You give the same error messages based on whatever custom validation and control the output.
- fkyoureadthedoc 2y agoI've found it more annoying to mess with the browser validation API and using setCustomValidity/reportValidity etc. than to just use other validation libs. Ideally I'd use whatever library I want and they would call setCustomValidity for me though. Using the related pseudo classes :valid, :invalid, :required, :optional is nice, but until last year you still had to do custom logic there because :user-valid/:user-invalid weren't implemented outside of Firefox. That created additional work and was annoying.