Skip to content
This repository was archived by the owner on Apr 12, 2024. It is now read-only.
This repository was archived by the owner on Apr 12, 2024. It is now read-only.

input type="email" validation does not allow more than 57 not-latin characters in domain part #15864

Closed
@andrew-kuzovov

Description

@andrew-kuzovov

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions