Changeset 86298 in webkit


Ignore:
Timestamp:
May 11, 2011 6:18:13 PM (13 years ago)
Author:
tkent@chromium.org
Message:

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.
Location:
trunk
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • trunk/LayoutTests/ChangeLog

    r86295 r86298  
     12011-05-11  Kent Tamura  <tkent@chromium.org>
     2
     3        Reviewed by Dimitri Glazkov.
     4
     5        input type=email is too strict
     6        https://bugs.webkit.org/show_bug.cgi?id=55988
     7
     8        * fast/forms/resources/ValidityState-typeMismatch-email.js:
     9        * fast/forms/ValidityState-typeMismatch-email-expected.txt:
     10
    1112011-05-11  Jia Pu  <jpu@apple.com>
    212
  • trunk/LayoutTests/fast/forms/ValidityState-typeMismatch-email-expected.txt

    r49508 r86298  
    2020PASS someone@do-.com is a correct valid email address
    2121PASS somebody@-.com is a correct valid email address
     22PASS somebody@example is a correct valid email address
    2223PASS invalid:email@example.com is a correct invalid email address
    2324PASS @somewhere.com is a correct invalid email address
  • trunk/LayoutTests/fast/forms/resources/ValidityState-typeMismatch-email.js

    r49508 r86298  
    3636emailCheck("someone@do-.com", false);
    3737emailCheck("somebody@-.com", false);
     38emailCheck("somebody@example", false);
    3839
    3940// INVALID
  • trunk/Source/WebCore/ChangeLog

    r86295 r86298  
     12011-05-11  Kent Tamura  <tkent@chromium.org>
     2
     3        Reviewed by Dimitri Glazkov.
     4
     5        input type=email is too strict
     6        https://bugs.webkit.org/show_bug.cgi?id=55988
     7
     8        Follow the updated specification.
     9
     10        * html/EmailInputType.cpp: Update the pattern to allow a domain part without periods.
     11
    1122011-05-11  Jia Pu  <jpu@apple.com>
    213
  • trunk/Source/WebCore/html/EmailInputType.cpp

    r74895 r86298  
    3535    "[a-z0-9!#$%&'*+/=?^_`{|}~.-]+" // local part
    3636    "@"
    37     "[a-z0-9-]+(\\.[a-z0-9-]+)+"; // domain part
     37    "[a-z0-9-]+(\\.[a-z0-9-]+)*"; // domain part
    3838
    3939static bool isValidEmailAddress(const String& address)
Note: See TracChangeset for help on using the changeset viewer.