Commit 571f6811 authored by tkent@chromium.org's avatar tkent@chromium.org
Browse files

2011-05-11 Kent Tamura <tkent@chromium.org>

        Reviewed by Dimitri Glazkov.

        input type=email is too strict
        https://bugs.webkit.org/show_bug.cgi?id=55988

        * fast/forms/resources/ValidityState-typeMismatch-email.js:
        * fast/forms/ValidityState-typeMismatch-email-expected.txt:
2011-05-11  Kent Tamura  <tkent@chromium.org>

        Reviewed by Dimitri Glazkov.

        input type=email is too strict
        https://bugs.webkit.org/show_bug.cgi?id=55988

        Follow the updated specification.

        * html/EmailInputType.cpp: Update the pattern to allow a domain part without periods.

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@86298 268f45cc-cd09-0410-ab3c-d52691b4dbfc
parent eba45b97
2011-05-11 Kent Tamura <tkent@chromium.org>
Reviewed by Dimitri Glazkov.
input type=email is too strict
https://bugs.webkit.org/show_bug.cgi?id=55988
* fast/forms/resources/ValidityState-typeMismatch-email.js:
* fast/forms/ValidityState-typeMismatch-email-expected.txt:
2011-05-11 Jia Pu <jpu@apple.com>
 
Reviewed by Darin Adler.
......@@ -19,6 +19,7 @@ PASS wo..oly@example.com is a correct valid email address
PASS someone@do-ma-in.com is a correct valid email address
PASS someone@do-.com is a correct valid email address
PASS somebody@-.com is a correct valid email address
PASS somebody@example is a correct valid email address
PASS invalid:email@example.com is a correct invalid email address
PASS @somewhere.com is a correct invalid email address
PASS example.com is a correct invalid email address
......
......@@ -35,6 +35,7 @@ emailCheck("wo..oly@example.com", false);
emailCheck("someone@do-ma-in.com", false);
emailCheck("someone@do-.com", false);
emailCheck("somebody@-.com", false);
emailCheck("somebody@example", false);
// INVALID
emailCheck("invalid:email@example.com", true);
......
2011-05-11 Kent Tamura <tkent@chromium.org>
Reviewed by Dimitri Glazkov.
input type=email is too strict
https://bugs.webkit.org/show_bug.cgi?id=55988
Follow the updated specification.
* html/EmailInputType.cpp: Update the pattern to allow a domain part without periods.
2011-05-11 Jia Pu <jpu@apple.com>
 
Reviewed by Darin Adler.
......@@ -34,7 +34,7 @@ namespace WebCore {
static const char emailPattern[] =
"[a-z0-9!#$%&'*+/=?^_`{|}~.-]+" // local part
"@"
"[a-z0-9-]+(\\.[a-z0-9-]+)+"; // domain part
"[a-z0-9-]+(\\.[a-z0-9-]+)*"; // domain part
static bool isValidEmailAddress(const String& address)
{
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment