diff options
author | Kent Tamura <tkent@chromium.org> | 2013-04-08 10:38:11 +0200 |
---|---|---|
committer | The Qt Project <gerrit-noreply@qt-project.org> | 2013-04-08 21:04:58 +0200 |
commit | 7e9bbda3e9bfbe90ca0b017ec1f8b1b1efd746c4 (patch) | |
tree | d7ab11dac85d069cce95adcf14ff1af11e017cc5 /Source/JavaScriptCore/debugger/Debugger.cpp | |
parent | a878703f1652ba6e541b81cb19d5a7d3e842aadc (diff) | |
download | qtwebkit-7e9bbda3e9bfbe90ca0b017ec1f8b1b1efd746c4.tar.gz |
REGRESSION(r135836): Invalid user input for input[type=number] should be cleared by input.value=""
https://bugs.webkit.org/show_bug.cgi?id=106284
Reviewed by Hajime Morita.
Source/WebCore:
No new tests. Updates fast/forms/number/number/validity-badinput.html.
* html/NumberInputType.cpp:
(WebCore::NumberInputType::setValue):
If the new sanitized value is empty and innerTextValue is a bad input
(it means !valueChanged && !innerTextValue().isEmpty() because the new
sanitized value is empty), we need to update innerTextValue with the
empty string.
* html/NumberInputType.h:
(NumberInputType): Declare setValue.
LayoutTests:
* fast/forms/number/number-validity-badinput.html:
Add a test case.
* fast/forms/number/number-validity-badinput-expected.txt:
Change-Id: Id878a7107578da2e88bcc344d61e1193a3fee9e6
git-svn-id: http://svn.webkit.org/repository/webkit/trunk@139151 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Reviewed-by: Jocelyn Turcotte <jocelyn.turcotte@digia.com>
Diffstat (limited to 'Source/JavaScriptCore/debugger/Debugger.cpp')
0 files changed, 0 insertions, 0 deletions