Today I learned that you can use reportValidity()
on a HTML5 input of e.g. type="email"
to force the browser to run it’s own validation, without waiting for the containing form to be submitted (which in some cases might not happen, e.g. if you’re handling input using JS).
That’s cool.
🧨 RSS is dynamite! Thanks for subscribing to my blog. 💥