x-moz-errormessage
required
<input type="text" pattern="[a-zA-Z]+" oninvalid="setCustomValidity('Custom Message')" />