According to the specification, if you just pass-through an input that is required and don't enter anything, the validation doesn't need to fire; only when you either enter something invalid or when you submit the form. I needed it to validate if you pass through a required field without entering anything too, so this is helpful for me. A required input is a required input after all!
Obviously the input in my example would have other arguments, like:
HTML Code:
<input type="text" name="textInput" id="textInput" onblur="this.checkValidity();" pattern="(.){2,14}" required>
Which would validate only if between 2 and 14 characters (any in that example) are entered.
Bookmarks