Should clear an invalid string in a date field on blur
authortkent@chromium.org <tkent@chromium.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Fri, 13 Apr 2012 07:35:40 +0000 (07:35 +0000)
committertkent@chromium.org <tkent@chromium.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Fri, 13 Apr 2012 07:35:40 +0000 (07:35 +0000)
commitae8dbf702f59cfd2c7fa23280bb08b606d7fecd3
tree9c026391bb5394a2cd67962499156a94a17231bd
parentc048dbb22c278c474239d364063032be8ae2b042
Should clear an invalid string in a date field on blur
https://bugs.webkit.org/show_bug.cgi?id=83863

Reviewed by Kentaro Hara.

Source/WebCore:

Test: fast/forms/date/input-date-commit-valid-only.html

* html/DateInputType.cpp:
(WebCore::DateInputType::handleBlurEvent):
Reset the visible value. The code is same as NumberInputType::handleBlurEvent().

LayoutTests:

* fast/forms/date/input-date-commit-valid-only-expected.txt: Added.
* fast/forms/date/input-date-commit-valid-only.html: Added.

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@114092 268f45cc-cd09-0410-ab3c-d52691b4dbfc
LayoutTests/ChangeLog
LayoutTests/fast/forms/date/input-date-commit-valid-only-expected.txt [new file with mode: 0644]
LayoutTests/fast/forms/date/input-date-commit-valid-only.html [new file with mode: 0644]
Source/WebCore/ChangeLog
Source/WebCore/html/DateInputType.cpp