Commit 1676e3b6 authored by sujae33.jo's avatar sujae33.jo Committed by Commit bot

Remove noisy value validation warnings for email input type.

We cannot distinguish invalid email addresses
which web developers mistakenly specified.

BUG=638455

Review-Url: https://codereview.chromium.org/2339493002
Cr-Commit-Position: refs/heads/master@{#419934}
parent 4a49910b
...@@ -632,6 +632,7 @@ Subrahmanya Praveen Munukutla <sataya.m@samsung.com> ...@@ -632,6 +632,7 @@ Subrahmanya Praveen Munukutla <sataya.m@samsung.com>
Suchit Agrawal <a.suchit@samsung.com> Suchit Agrawal <a.suchit@samsung.com>
Sudarsana Babu Nagineni <sudarsana.nagineni@intel.com> Sudarsana Babu Nagineni <sudarsana.nagineni@intel.com>
Sudarshan Parthasarathy <sudarshan.p@samsung.com> Sudarshan Parthasarathy <sudarshan.p@samsung.com>
Sujae Jo <sujae33.jo@gmail.com>
Sujith S S <sujiths.s@samsung.com> Sujith S S <sujiths.s@samsung.com>
Sungguk Lim <limasdf@gmail.com> Sungguk Lim <limasdf@gmail.com>
Sungmann Cho <sungmann.cho@gmail.com> Sungmann Cho <sungmann.cho@gmail.com>
......
CONSOLE WARNING: line 44: The specified value "something" is not a valid email address.
CONSOLE ERROR: line 84: Pattern attribute value )foo( is not a valid regular expression: Uncaught SyntaxError: Invalid regular expression: /)foo(/: Unmatched ')' CONSOLE ERROR: line 84: Pattern attribute value )foo( is not a valid regular expression: Uncaught SyntaxError: Invalid regular expression: /)foo(/: Unmatched ')'
CONSOLE ERROR: line 84: Pattern attribute value )foo( is not a valid regular expression: Uncaught SyntaxError: Invalid regular expression: /)foo(/: Unmatched ')' CONSOLE ERROR: line 84: Pattern attribute value )foo( is not a valid regular expression: Uncaught SyntaxError: Invalid regular expression: /)foo(/: Unmatched ')'
CONSOLE ERROR: line 84: Pattern attribute value )foo( is not a valid regular expression: Uncaught SyntaxError: Invalid regular expression: /)foo(/: Unmatched ')' CONSOLE ERROR: line 84: Pattern attribute value )foo( is not a valid regular expression: Uncaught SyntaxError: Invalid regular expression: /)foo(/: Unmatched ')'
......
CONSOLE WARNING: line 8: The specified value "parsing\u263A" is not a valid email address.
CONSOLE WARNING: line 9: The specified value "value-before-type\u263A" is not a valid email address.
CONSOLE WARNING: line 10: The specified value "invalid-in-multiple\u263A" is not a valid email address.
CONSOLE WARNING: line 26: The specified value "Invalid attribute value" is not a valid email address.
CONSOLE WARNING: line 28: The specified value "Invalid attribute value" is not a valid email address.
CONSOLE WARNING: line 31: The specified value "Invalid IDL value" is not a valid email address.
Invisible INPUT element should not show a format warning.
Visible INPUT element should show a format warning. We'll see three warnings.
PASS successfullyParsed is true
TEST COMPLETE
<!DOCTYPE html>
<body>
<script src="../../resources/js-test.js"></script>
<div id="container">
<input type="email">
<input type="email" style="visibility: hidden;">
<input type="email" style="display: none;">
<input type="email" value="parsing&#x263A;"><!-- This should show one warning. -->
<input value="value-before-type&#x263A;" type="email"><!-- This should show one warning. -->
<input value="valid@example.com, invalid-in-multiple&#x263A;" type="email" multiple><!-- This should show one warning. -->
</div>
<script>
var inputs = document.querySelectorAll('input');
var visibleInput = inputs[0];
var invisibleInput2 = inputs[1];
var invisibleInput3 = inputs[2];
// Force layout. The warning message behavior depends on computed style.
visibleInput.offsetWidth;
debug('Invisible INPUT element should not show a format warning.');
invisibleInput2.value = ':)';
invisibleInput3.value = ':)';
debug('');
debug('Visible INPUT element should show a format warning. We\'ll see three warnings.');
visibleInput.setAttribute('value', 'Invalid attribute value'); // This shows a warning.
visibleInput.type = 'text';
visibleInput.type = 'email'; // This shows a warning again.
visibleInput.offsetWidth;
visibleInput.value = 'Invalid IDL value'; // This shows a warning.
visibleInput.type = 'text';
visibleInput.type = 'email'; // This doesn't show a warning.
document.querySelector('#container').remove();
</script>
</body>
CONSOLE WARNING: line 50: The specified value "xn--t8j.com" is not a valid email address.
CONSOLE WARNING: line 53: The specified value "foo@ma\u00F1ana.com" is not a valid email address.
Tests ascii-unicode conversion of IDN email addresses on input type=email. Tests ascii-unicode conversion of IDN email addresses on input type=email.
On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE". On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE".
......
CONSOLE WARNING: line 290: The specified value "a" is not a valid email address.
CONSOLE WARNING: line 290: The specified value "a" is not a valid email address.
CONSOLE WARNING: line 283: The specified value "abc" is not a valid email address.
This is a testharness.js-based test. This is a testharness.js-based test.
PASS [INPUT in TEXT status] no constraint PASS [INPUT in TEXT status] no constraint
PASS [INPUT in TEXT status] no constraint (in a form) PASS [INPUT in TEXT status] no constraint (in a form)
......
...@@ -20,11 +20,8 @@ ValidationMessageClient: main-message=Please enter a URL. sub-message= ...@@ -20,11 +20,8 @@ ValidationMessageClient: main-message=Please enter a URL. sub-message=
ValidationMessageClient: main-message=Please enter a URL. sub-message= ValidationMessageClient: main-message=Please enter a URL. sub-message=
ValidationMessageClient: main-message=Please fill out this field. sub-message= ValidationMessageClient: main-message=Please fill out this field. sub-message=
ValidationMessageClient: main-message=Please fill out this field. sub-message= ValidationMessageClient: main-message=Please fill out this field. sub-message=
CONSOLE WARNING: line 290: The specified value "a" is not a valid email address.
CONSOLE WARNING: line 290: The specified value "a" is not a valid email address.
ValidationMessageClient: main-message=Please match the requested format. sub-message= ValidationMessageClient: main-message=Please match the requested format. sub-message=
ValidationMessageClient: main-message=Please match the requested format. sub-message= ValidationMessageClient: main-message=Please match the requested format. sub-message=
CONSOLE WARNING: line 283: The specified value "abc" is not a valid email address.
ValidationMessageClient: main-message=Please include an '@' in the email address. 'abc' is missing an '@'. sub-message= ValidationMessageClient: main-message=Please include an '@' in the email address. 'abc' is missing an '@'. sub-message=
ValidationMessageClient: main-message=Please include an '@' in the email address. 'abc' is missing an '@'. sub-message= ValidationMessageClient: main-message=Please include an '@' in the email address. 'abc' is missing an '@'. sub-message=
ValidationMessageClient: main-message=Please fill out this field. sub-message= ValidationMessageClient: main-message=Please fill out this field. sub-message=
......
CONSOLE WARNING: line 13: The specified value "abc" is not a valid email address.
CONSOLE ERROR: line 79: An invalid form control with name='' is not focusable. CONSOLE ERROR: line 79: An invalid form control with name='' is not focusable.
CONSOLE ERROR: line 79: An invalid form control with name='' is not focusable. CONSOLE ERROR: line 79: An invalid form control with name='' is not focusable.
CONSOLE ERROR: line 108: An invalid form control with name='' is not focusable. CONSOLE ERROR: line 108: An invalid form control with name='' is not focusable.
......
CONSOLE WARNING: line 290: The specified value "a" is not a valid email address.
CONSOLE WARNING: line 291: The specified value "abcde" is not a valid email address.
CONSOLE WARNING: line 283: The specified value "AAAAA" is not a valid email address.
CONSOLE WARNING: line 290: The specified value "a" is not a valid email address.
CONSOLE WARNING: line 291: The specified value "AAAAA" is not a valid email address.
CONSOLE WARNING: line 283: The specified value "abcd" is not a valid email address.
CONSOLE WARNING: line 290: The specified value "a" is not a valid email address.
CONSOLE WARNING: line 291: The specified value "abcd" is not a valid email address.
CONSOLE WARNING: line 283: The specified value "abc" is not a valid email address.
CONSOLE WARNING: line 290: The specified value "a" is not a valid email address.
CONSOLE WARNING: line 291: The specified value "abc" is not a valid email address.
This is a testharness.js-based test.
PASS [INPUT in TEXT status] Non-dirty value - minLength is not set
PASS [INPUT in TEXT status] Non-dirty value - value is empty string
PASS [INPUT in TEXT status] Non-dirty value - length of value is greater than minLength
PASS [INPUT in TEXT status] Non-dirty value - length of value equals to minLength
PASS [INPUT in TEXT status] Non-dirty value - length of value is less than minLength
PASS [INPUT in TEXT status] Dirty value - value is greater than minLength
PASS [INPUT in TEXT status] Dirty value - length of value(AAAAA) in unicode is greater than minLength
PASS [INPUT in TEXT status] Dirty value - value equals to minLength
PASS [INPUT in TEXT status] Dirty value - length of value is less than minLength
PASS [INPUT in SEARCH status] Non-dirty value - minLength is not set
PASS [INPUT in SEARCH status] Non-dirty value - value is empty string
PASS [INPUT in SEARCH status] Non-dirty value - length of value is greater than minLength
PASS [INPUT in SEARCH status] Non-dirty value - length of value equals to minLength
PASS [INPUT in SEARCH status] Non-dirty value - length of value is less than minLength
PASS [INPUT in SEARCH status] Dirty value - value is greater than minLength
PASS [INPUT in SEARCH status] Dirty value - length of value(AAAAA) in unicode is greater than minLength
PASS [INPUT in SEARCH status] Dirty value - value equals to minLength
PASS [INPUT in SEARCH status] Dirty value - length of value is less than minLength
PASS [INPUT in TEL status] Non-dirty value - minLength is not set
PASS [INPUT in TEL status] Non-dirty value - value is empty string
PASS [INPUT in TEL status] Non-dirty value - length of value is greater than minLength
PASS [INPUT in TEL status] Non-dirty value - length of value equals to minLength
PASS [INPUT in TEL status] Non-dirty value - length of value is less than minLength
PASS [INPUT in TEL status] Dirty value - value is greater than minLength
PASS [INPUT in TEL status] Dirty value - length of value(AAAAA) in unicode is greater than minLength
PASS [INPUT in TEL status] Dirty value - value equals to minLength
PASS [INPUT in TEL status] Dirty value - length of value is less than minLength
PASS [INPUT in URL status] Non-dirty value - minLength is not set
PASS [INPUT in URL status] Non-dirty value - value is empty string
PASS [INPUT in URL status] Non-dirty value - length of value is greater than minLength
PASS [INPUT in URL status] Non-dirty value - length of value equals to minLength
PASS [INPUT in URL status] Non-dirty value - length of value is less than minLength
PASS [INPUT in URL status] Dirty value - value is greater than minLength
PASS [INPUT in URL status] Dirty value - length of value(AAAAA) in unicode is greater than minLength
PASS [INPUT in URL status] Dirty value - value equals to minLength
PASS [INPUT in URL status] Dirty value - length of value is less than minLength
PASS [INPUT in EMAIL status] Non-dirty value - minLength is not set
PASS [INPUT in EMAIL status] Non-dirty value - value is empty string
PASS [INPUT in EMAIL status] Non-dirty value - length of value is greater than minLength
PASS [INPUT in EMAIL status] Non-dirty value - length of value equals to minLength
PASS [INPUT in EMAIL status] Non-dirty value - length of value is less than minLength
PASS [INPUT in EMAIL status] Dirty value - value is greater than minLength
PASS [INPUT in EMAIL status] Dirty value - length of value(AAAAA) in unicode is greater than minLength
PASS [INPUT in EMAIL status] Dirty value - value equals to minLength
PASS [INPUT in EMAIL status] Dirty value - length of value is less than minLength
PASS [INPUT in PASSWORD status] Non-dirty value - minLength is not set
PASS [INPUT in PASSWORD status] Non-dirty value - value is empty string
PASS [INPUT in PASSWORD status] Non-dirty value - length of value is greater than minLength
PASS [INPUT in PASSWORD status] Non-dirty value - length of value equals to minLength
PASS [INPUT in PASSWORD status] Non-dirty value - length of value is less than minLength
PASS [INPUT in PASSWORD status] Dirty value - value is greater than minLength
PASS [INPUT in PASSWORD status] Dirty value - length of value(AAAAA) in unicode is greater than minLength
PASS [INPUT in PASSWORD status] Dirty value - value equals to minLength
PASS [INPUT in PASSWORD status] Dirty value - length of value is less than minLength
PASS [textarea] Non-dirty value - minLength is no set
PASS [textarea] Non-dirty value - value is empty string
PASS [textarea] Non-dirty value - length of value is greater than minLength
PASS [textarea] Non-dirty value - length of value equals to minLength
PASS [textarea] Non-dirty value - length of length of value is greater than minLength
PASS [textarea] Dirty value - value is less than minLength
PASS [textarea] Dirty value - length of value(LF, CRLF) in unicode is less than minLength
PASS [textarea] Dirty value - length of value equals to minLength
PASS [textarea] Dirty value - length of value is greater than minLength
Harness: the test ran to completion.
CONSOLE WARNING: line 290: The specified value "a" is not a valid email address.
CONSOLE WARNING: line 283: The specified value "abc" is not a valid email address.
This is a testharness.js-based test. This is a testharness.js-based test.
FAIL [INPUT in TEXT status] validity.valid must be false if validity.tooLong is true assert_false: The validity.valid should be false. expected false got true FAIL [INPUT in TEXT status] validity.valid must be false if validity.tooLong is true assert_false: The validity.valid should be false. expected false got true
PASS [INPUT in TEXT status] validity.valid must be false if validity.patternMismatch is true PASS [INPUT in TEXT status] validity.valid must be false if validity.patternMismatch is true
......
CONSOLE WARNING: line 51: The specified value " foo\rbar " is not a valid email address.
CONSOLE WARNING: line 51: The specified value " foo\rbar " does not conform to the required format, "yyyy-MM-dd". CONSOLE WARNING: line 51: The specified value " foo\rbar " does not conform to the required format, "yyyy-MM-dd".
CONSOLE WARNING: line 51: The specified value " foo\rbar " does not conform to the required format. The format is "yyyy-MM" where yyyy is year in four or more digits, and MM is 01-12. CONSOLE WARNING: line 51: The specified value " foo\rbar " does not conform to the required format. The format is "yyyy-MM" where yyyy is year in four or more digits, and MM is 01-12.
CONSOLE WARNING: line 51: The specified value " foo\rbar " does not conform to the required format. The format is "yyyy-Www" where yyyy is year in four or more digits, and ww is 01-53. CONSOLE WARNING: line 51: The specified value " foo\rbar " does not conform to the required format. The format is "yyyy-Www" where yyyy is year in four or more digits, and ww is 01-53.
CONSOLE WARNING: line 51: The specified value " foo\rbar " does not conform to the required format. The format is "HH:mm", "HH:mm:ss" or "HH:mm:ss.SSS" where HH is 00-23, mm is 00-59, ss is 00-59, and SSS is 000-999. CONSOLE WARNING: line 51: The specified value " foo\rbar " does not conform to the required format. The format is "HH:mm", "HH:mm:ss" or "HH:mm:ss.SSS" where HH is 00-23, mm is 00-59, ss is 00-59, and SSS is 000-999.
CONSOLE WARNING: line 51: The specified value " foo\rbar " is not a valid number. The value must match to the following regular expression: -?(\d+|\d+\.\d+|\.\d+)([eE][-+]?\d+)? CONSOLE WARNING: line 51: The specified value " foo\rbar " is not a valid number. The value must match to the following regular expression: -?(\d+|\d+\.\d+|\.\d+)([eE][-+]?\d+)?
CONSOLE WARNING: line 51: The specified value " foo\rbar " does not conform to the required format. The format is "#rrggbb" where rr, gg, bb are two-digit hexadecimal numbers. CONSOLE WARNING: line 51: The specified value " foo\rbar " does not conform to the required format. The format is "#rrggbb" where rr, gg, bb are two-digit hexadecimal numbers.
CONSOLE WARNING: line 51: The specified value " foo\rbar " is not a valid email address.
CONSOLE WARNING: line 51: The specified value " foo\rbar " does not conform to the required format, "yyyy-MM-dd". CONSOLE WARNING: line 51: The specified value " foo\rbar " does not conform to the required format, "yyyy-MM-dd".
CONSOLE WARNING: line 51: The specified value " foo\rbar " does not conform to the required format. The format is "yyyy-MM" where yyyy is year in four or more digits, and MM is 01-12. CONSOLE WARNING: line 51: The specified value " foo\rbar " does not conform to the required format. The format is "yyyy-MM" where yyyy is year in four or more digits, and MM is 01-12.
CONSOLE WARNING: line 51: The specified value " foo\rbar " does not conform to the required format. The format is "yyyy-Www" where yyyy is year in four or more digits, and ww is 01-53. CONSOLE WARNING: line 51: The specified value " foo\rbar " does not conform to the required format. The format is "yyyy-Www" where yyyy is year in four or more digits, and ww is 01-53.
CONSOLE WARNING: line 51: The specified value " foo\rbar " does not conform to the required format. The format is "HH:mm", "HH:mm:ss" or "HH:mm:ss.SSS" where HH is 00-23, mm is 00-59, ss is 00-59, and SSS is 000-999. CONSOLE WARNING: line 51: The specified value " foo\rbar " does not conform to the required format. The format is "HH:mm", "HH:mm:ss" or "HH:mm:ss.SSS" where HH is 00-23, mm is 00-59, ss is 00-59, and SSS is 000-999.
CONSOLE WARNING: line 51: The specified value " foo\rbar " is not a valid number. The value must match to the following regular expression: -?(\d+|\d+\.\d+|\.\d+)([eE][-+]?\d+)? CONSOLE WARNING: line 51: The specified value " foo\rbar " is not a valid number. The value must match to the following regular expression: -?(\d+|\d+\.\d+|\.\d+)([eE][-+]?\d+)?
CONSOLE WARNING: line 51: The specified value " foo\rbar " does not conform to the required format. The format is "#rrggbb" where rr, gg, bb are two-digit hexadecimal numbers. CONSOLE WARNING: line 51: The specified value " foo\rbar " does not conform to the required format. The format is "#rrggbb" where rr, gg, bb are two-digit hexadecimal numbers.
CONSOLE WARNING: line 51: The specified value " foo\rbar " is not a valid email address.
CONSOLE WARNING: line 51: The specified value " foo\rbar " does not conform to the required format, "yyyy-MM-dd". CONSOLE WARNING: line 51: The specified value " foo\rbar " does not conform to the required format, "yyyy-MM-dd".
CONSOLE WARNING: line 51: The specified value " foo\rbar " does not conform to the required format. The format is "yyyy-MM" where yyyy is year in four or more digits, and MM is 01-12. CONSOLE WARNING: line 51: The specified value " foo\rbar " does not conform to the required format. The format is "yyyy-MM" where yyyy is year in four or more digits, and MM is 01-12.
CONSOLE WARNING: line 51: The specified value " foo\rbar " does not conform to the required format. The format is "yyyy-Www" where yyyy is year in four or more digits, and ww is 01-53. CONSOLE WARNING: line 51: The specified value " foo\rbar " does not conform to the required format. The format is "yyyy-Www" where yyyy is year in four or more digits, and ww is 01-53.
CONSOLE WARNING: line 51: The specified value " foo\rbar " does not conform to the required format. The format is "HH:mm", "HH:mm:ss" or "HH:mm:ss.SSS" where HH is 00-23, mm is 00-59, ss is 00-59, and SSS is 000-999. CONSOLE WARNING: line 51: The specified value " foo\rbar " does not conform to the required format. The format is "HH:mm", "HH:mm:ss" or "HH:mm:ss.SSS" where HH is 00-23, mm is 00-59, ss is 00-59, and SSS is 000-999.
CONSOLE WARNING: line 51: The specified value " foo\rbar " is not a valid number. The value must match to the following regular expression: -?(\d+|\d+\.\d+|\.\d+)([eE][-+]?\d+)? CONSOLE WARNING: line 51: The specified value " foo\rbar " is not a valid number. The value must match to the following regular expression: -?(\d+|\d+\.\d+|\.\d+)([eE][-+]?\d+)?
CONSOLE WARNING: line 51: The specified value " foo\rbar " does not conform to the required format. The format is "#rrggbb" where rr, gg, bb are two-digit hexadecimal numbers. CONSOLE WARNING: line 51: The specified value " foo\rbar " does not conform to the required format. The format is "#rrggbb" where rr, gg, bb are two-digit hexadecimal numbers.
CONSOLE WARNING: line 51: The specified value " foo\rbar " is not a valid email address.
CONSOLE WARNING: line 51: The specified value " foo\rbar " does not conform to the required format, "yyyy-MM-dd". CONSOLE WARNING: line 51: The specified value " foo\rbar " does not conform to the required format, "yyyy-MM-dd".
CONSOLE WARNING: line 51: The specified value " foo\rbar " does not conform to the required format. The format is "yyyy-MM" where yyyy is year in four or more digits, and MM is 01-12. CONSOLE WARNING: line 51: The specified value " foo\rbar " does not conform to the required format. The format is "yyyy-MM" where yyyy is year in four or more digits, and MM is 01-12.
CONSOLE WARNING: line 51: The specified value " foo\rbar " does not conform to the required format. The format is "yyyy-Www" where yyyy is year in four or more digits, and ww is 01-53. CONSOLE WARNING: line 51: The specified value " foo\rbar " does not conform to the required format. The format is "yyyy-Www" where yyyy is year in four or more digits, and ww is 01-53.
CONSOLE WARNING: line 51: The specified value " foo\rbar " does not conform to the required format. The format is "HH:mm", "HH:mm:ss" or "HH:mm:ss.SSS" where HH is 00-23, mm is 00-59, ss is 00-59, and SSS is 000-999. CONSOLE WARNING: line 51: The specified value " foo\rbar " does not conform to the required format. The format is "HH:mm", "HH:mm:ss" or "HH:mm:ss.SSS" where HH is 00-23, mm is 00-59, ss is 00-59, and SSS is 000-999.
CONSOLE WARNING: line 51: The specified value " foo\rbar " is not a valid number. The value must match to the following regular expression: -?(\d+|\d+\.\d+|\.\d+)([eE][-+]?\d+)? CONSOLE WARNING: line 51: The specified value " foo\rbar " is not a valid number. The value must match to the following regular expression: -?(\d+|\d+\.\d+|\.\d+)([eE][-+]?\d+)?
CONSOLE WARNING: line 51: The specified value " foo\rbar " does not conform to the required format. The format is "#rrggbb" where rr, gg, bb are two-digit hexadecimal numbers. CONSOLE WARNING: line 51: The specified value " foo\rbar " does not conform to the required format. The format is "#rrggbb" where rr, gg, bb are two-digit hexadecimal numbers.
CONSOLE WARNING: line 51: The specified value " foo\rbar " is not a valid email address.
CONSOLE WARNING: line 51: The specified value " foo\rbar " does not conform to the required format, "yyyy-MM-dd". CONSOLE WARNING: line 51: The specified value " foo\rbar " does not conform to the required format, "yyyy-MM-dd".
CONSOLE WARNING: line 51: The specified value " foo\rbar " does not conform to the required format. The format is "yyyy-MM" where yyyy is year in four or more digits, and MM is 01-12. CONSOLE WARNING: line 51: The specified value " foo\rbar " does not conform to the required format. The format is "yyyy-MM" where yyyy is year in four or more digits, and MM is 01-12.
CONSOLE WARNING: line 51: The specified value " foo\rbar " does not conform to the required format. The format is "yyyy-Www" where yyyy is year in four or more digits, and ww is 01-53. CONSOLE WARNING: line 51: The specified value " foo\rbar " does not conform to the required format. The format is "yyyy-Www" where yyyy is year in four or more digits, and ww is 01-53.
CONSOLE WARNING: line 51: The specified value " foo\rbar " does not conform to the required format. The format is "HH:mm", "HH:mm:ss" or "HH:mm:ss.SSS" where HH is 00-23, mm is 00-59, ss is 00-59, and SSS is 000-999. CONSOLE WARNING: line 51: The specified value " foo\rbar " does not conform to the required format. The format is "HH:mm", "HH:mm:ss" or "HH:mm:ss.SSS" where HH is 00-23, mm is 00-59, ss is 00-59, and SSS is 000-999.
CONSOLE WARNING: line 51: The specified value " foo\rbar " is not a valid number. The value must match to the following regular expression: -?(\d+|\d+\.\d+|\.\d+)([eE][-+]?\d+)? CONSOLE WARNING: line 51: The specified value " foo\rbar " is not a valid number. The value must match to the following regular expression: -?(\d+|\d+\.\d+|\.\d+)([eE][-+]?\d+)?
CONSOLE WARNING: line 51: The specified value " foo\rbar " does not conform to the required format. The format is "#rrggbb" where rr, gg, bb are two-digit hexadecimal numbers. CONSOLE WARNING: line 51: The specified value " foo\rbar " does not conform to the required format. The format is "#rrggbb" where rr, gg, bb are two-digit hexadecimal numbers.
CONSOLE WARNING: line 51: The specified value " foo\rbar " is not a valid email address.
CONSOLE WARNING: line 51: The specified value " foo\rbar " does not conform to the required format, "yyyy-MM-dd". CONSOLE WARNING: line 51: The specified value " foo\rbar " does not conform to the required format, "yyyy-MM-dd".
CONSOLE WARNING: line 51: The specified value " foo\rbar " does not conform to the required format. The format is "yyyy-MM" where yyyy is year in four or more digits, and MM is 01-12. CONSOLE WARNING: line 51: The specified value " foo\rbar " does not conform to the required format. The format is "yyyy-MM" where yyyy is year in four or more digits, and MM is 01-12.
CONSOLE WARNING: line 51: The specified value " foo\rbar " does not conform to the required format. The format is "yyyy-Www" where yyyy is year in four or more digits, and ww is 01-53. CONSOLE WARNING: line 51: The specified value " foo\rbar " does not conform to the required format. The format is "yyyy-Www" where yyyy is year in four or more digits, and ww is 01-53.
CONSOLE WARNING: line 51: The specified value " foo\rbar " does not conform to the required format. The format is "HH:mm", "HH:mm:ss" or "HH:mm:ss.SSS" where HH is 00-23, mm is 00-59, ss is 00-59, and SSS is 000-999. CONSOLE WARNING: line 51: The specified value " foo\rbar " does not conform to the required format. The format is "HH:mm", "HH:mm:ss" or "HH:mm:ss.SSS" where HH is 00-23, mm is 00-59, ss is 00-59, and SSS is 000-999.
CONSOLE WARNING: line 51: The specified value " foo\rbar " is not a valid number. The value must match to the following regular expression: -?(\d+|\d+\.\d+|\.\d+)([eE][-+]?\d+)? CONSOLE WARNING: line 51: The specified value " foo\rbar " is not a valid number. The value must match to the following regular expression: -?(\d+|\d+\.\d+|\.\d+)([eE][-+]?\d+)?
CONSOLE WARNING: line 51: The specified value " foo\rbar " does not conform to the required format. The format is "#rrggbb" where rr, gg, bb are two-digit hexadecimal numbers. CONSOLE WARNING: line 51: The specified value " foo\rbar " does not conform to the required format. The format is "#rrggbb" where rr, gg, bb are two-digit hexadecimal numbers.
CONSOLE WARNING: line 51: The specified value " foo\rbar " is not a valid email address.
CONSOLE WARNING: line 51: The specified value " foo\rbar " does not conform to the required format, "yyyy-MM-dd". CONSOLE WARNING: line 51: The specified value " foo\rbar " does not conform to the required format, "yyyy-MM-dd".
CONSOLE WARNING: line 51: The specified value " foo\rbar " does not conform to the required format. The format is "yyyy-MM" where yyyy is year in four or more digits, and MM is 01-12. CONSOLE WARNING: line 51: The specified value " foo\rbar " does not conform to the required format. The format is "yyyy-MM" where yyyy is year in four or more digits, and MM is 01-12.
CONSOLE WARNING: line 51: The specified value " foo\rbar " does not conform to the required format. The format is "yyyy-Www" where yyyy is year in four or more digits, and ww is 01-53. CONSOLE WARNING: line 51: The specified value " foo\rbar " does not conform to the required format. The format is "yyyy-Www" where yyyy is year in four or more digits, and ww is 01-53.
......
...@@ -20,11 +20,8 @@ ValidationMessageClient: main-message=Please enter a URL. sub-message= ...@@ -20,11 +20,8 @@ ValidationMessageClient: main-message=Please enter a URL. sub-message=
ValidationMessageClient: main-message=Please enter a URL. sub-message= ValidationMessageClient: main-message=Please enter a URL. sub-message=
ValidationMessageClient: main-message=Please fill out this field. sub-message= ValidationMessageClient: main-message=Please fill out this field. sub-message=
ValidationMessageClient: main-message=Please fill out this field. sub-message= ValidationMessageClient: main-message=Please fill out this field. sub-message=
CONSOLE WARNING: line 290: The specified value "a" is not a valid email address.
CONSOLE WARNING: line 290: The specified value "a" is not a valid email address.
ValidationMessageClient: main-message=Please match the requested format. sub-message= ValidationMessageClient: main-message=Please match the requested format. sub-message=
ValidationMessageClient: main-message=Please match the requested format. sub-message= ValidationMessageClient: main-message=Please match the requested format. sub-message=
CONSOLE WARNING: line 283: The specified value "abc" is not a valid email address.
ValidationMessageClient: main-message=Please include an '@' in the email address. 'abc' is missing an '@'. sub-message= ValidationMessageClient: main-message=Please include an '@' in the email address. 'abc' is missing an '@'. sub-message=
ValidationMessageClient: main-message=Please include an '@' in the email address. 'abc' is missing an '@'. sub-message= ValidationMessageClient: main-message=Please include an '@' in the email address. 'abc' is missing an '@'. sub-message=
ValidationMessageClient: main-message=Please fill out this field. sub-message= ValidationMessageClient: main-message=Please fill out this field. sub-message=
......
...@@ -248,13 +248,6 @@ String EmailInputType::typeMismatchText() const ...@@ -248,13 +248,6 @@ String EmailInputType::typeMismatchText() const
return locale().queryString(WebLocalizedString::ValidationTypeMismatchForEmail); return locale().queryString(WebLocalizedString::ValidationTypeMismatchForEmail);
} }
void EmailInputType::warnIfValueIsInvalid(const String& value) const
{
String invalidAddress = findInvalidAddress(value);
if (invalidAddress.isNull())
return;
addWarningToConsole("The specified value %s is not a valid email address.", invalidAddress);
}
bool EmailInputType::supportsSelectionAPI() const bool EmailInputType::supportsSelectionAPI() const
{ {
......
...@@ -51,7 +51,6 @@ private: ...@@ -51,7 +51,6 @@ private:
bool typeMismatchFor(const String&) const override; bool typeMismatchFor(const String&) const override;
bool typeMismatch() const override; bool typeMismatch() const override;
String typeMismatchText() const override; String typeMismatchText() const override;
void warnIfValueIsInvalid(const String&) const override;
bool supportsSelectionAPI() const override; bool supportsSelectionAPI() const override;
String sanitizeValue(const String&) const override; String sanitizeValue(const String&) const override;
String convertFromVisibleValue(const String&) const override; String convertFromVisibleValue(const String&) const override;
......
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