Reputation: 14468
I recently had to exemplify a list of e-mail addresses which I did by double quoting the original address and append @example.com
.
For example
I converted to
"[email protected]"@example.com
To my big surprise I found that the resulting e-mail address validates as invalid in the HTML5 input=email field validation, i.e.
<input name='foo' type='email' required='required' />
Does this not make the build in HTML5 validation of e-mail addresses completely useless as it block potential valid e-mail addresses, or am I missing something here?
Upvotes: 2
Views: 91
Reputation: 2090
HTML5 In Built email validation provides very basic validation. If you want to cover each and every scenario consider using a library or handle using regex.
Upvotes: 1