[Webkit-unassigned] [Bug 55987] input type=email and multiple is not compliant
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Fri Jun 24 03:58:08 PDT 2011
https://bugs.webkit.org/show_bug.cgi?id=55987
Kent Tamura <tkent at chromium.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Attachment #98464|review? |review-
Flag| |
--- Comment #5 from Kent Tamura <tkent at chromium.org> 2011-06-24 03:58:08 PST ---
(From update of attachment 98464)
View in context: https://bugs.webkit.org/attachment.cgi?id=98464&action=review
Thank you for working on this.
However, the code change is not enough. We should allow whitespace in user-input, but we should not send whitespace on form submission and HTMLInputElement::value should not return a string with whitespace.
Please see http://www.whatwg.org/specs/web-apps/current-work/multipage/states-of-the-type-attribute.html#e-mail-state
We need to override TextFieldInputType::sanitizeValue() to strip whitespace.
> LayoutTests/fast/forms/resources/ValidityState-typeMismatch-email.js:75
> +emailCheck(" a @p.com , b at p.com ", true);
> +emailCheck(" a at p.com , b @p.com ", true);
We should have tests for space characters other than U+0020.
U+0009 U+000A U+000C U+000D should be stripped, and U+2003 and U+3000 should not be stripped.
http://www.whatwg.org/specs/web-apps/current-work/multipage/common-microsyntaxes.html#space-character
> Source/WebCore/html/EmailInputType.cpp:-66
> - if (value.isEmpty())
> - return false;
Why did you remove these lines?
--
Configure bugmail: https://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
More information about the webkit-unassigned
mailing list