2

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

[email protected]

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?

1

1 Answer 1

1

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.

Sign up to request clarification or add additional context in comments.

1 Comment

But a "basic validation" should not mark valid input as invalid IMHO. A basic validation would be to test for "@" for example.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.