input type="email" validation does not allow more than 57 not-latin characters in domain part #15864
Description
I'm submitting a ...
- bug report
- feature request
- other (Please do not submit support requests here (see above))
Current behavior:
E-mails like "email@вввввввввввввввввввввввввввввввввввввввввввввввввввввввввв.com"
are considered invalid ("в" in domain here is russian symbol) when reaching length more than 57. Classes "ng-invalid", "ng-invalid-email" are set. But when latin symbols are used in domain - there is no such restriction.
Expected / new behavior:
E-mails like: email@вввввввввввввввввввввввввввввввввввввввввввввввввввввввввв.com
should be considered valid
Minimal reproduction of the problem with instructions:
Input email with more than 57 non-latin symbols in domain part, like "email@вввввввввввввввввввввввввввввввввввввввввввввввввввввввввв.com"
<div ng-app="myapp">
<form>
<input id="email"
type="email"
name="email"
ng-model="email"
placeholder="email"
maxlength="255"
ng-trim="false" />
</form>
</div>
Angular version: 1.5.7
1.5.7
Browser: [all | Chrome XX | Firefox XX | IE XX | Safari XX | Mobile Chrome XX | Android X.X Web Browser | iOS XX Safari | iOS XX UIWebView | iOS XX WKWebView ]
Chrome 56.0.2924.87, Windows
Anything else:
Maybe check some regexp