Summary: | <input type=number> should not have an invalid number as its value | ||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Product: | WebKit | Reporter: | Kent Tamura <tkent> | ||||||||
Component: | Forms | Assignee: | Kent Tamura <tkent> | ||||||||
Status: | RESOLVED FIXED | ||||||||||
Severity: | Normal | CC: | adele, darin, dglazkov | ||||||||
Priority: | P2 | ||||||||||
Version: | 528+ (Nightly build) | ||||||||||
Hardware: | All | ||||||||||
OS: | All | ||||||||||
Bug Depends on: | |||||||||||
Bug Blocks: | 37024, 42484, 45376 | ||||||||||
Attachments: |
|
Description
Kent Tamura
2010-08-13 08:17:20 PDT
Created attachment 64346 [details]
Patch
Created attachment 65892 [details]
Patch 2 (rebased)
Comment on attachment 65892 [details] Patch 2 (rebased) View in context: https://bugs.webkit.org/attachment.cgi?id=65892&action=prettypatch > WebCore/dom/InputElement.h:64 > + virtual bool isCommittableValue(const String&) const = 0; How about isAcceptableValue? Committable seems unclear. > WebCore/rendering/RenderTextControlSingleLine.cpp:681 > + else if (!node()->isHTMLElement() || !static_cast<HTMLInputElement*>(node())->formControlValueMatchesRenderer()) What does this check mean? Created attachment 66343 [details]
Patch 3
Thank you for reviewing! (In reply to comment #3) > > WebCore/dom/InputElement.h:64 > > + virtual bool isCommittableValue(const String&) const = 0; > How about isAcceptableValue? Committable seems unclear. Done. > > WebCore/rendering/RenderTextControlSingleLine.cpp:681 > > + else if (!node()->isHTMLElement() || !static_cast<HTMLInputElement*>(node())->formControlValueMatchesRenderer()) > What does this check mean? Good catch. This was experimental code for localized numbers and is not needed at this moment. I removed it. Comment on attachment 66343 [details]
Patch 3
yay, team!
Comment on attachment 66343 [details] Patch 3 Clearing flags on attachment: 66343 Committed r67164: <http://trac.webkit.org/changeset/67164> All reviewed patches have been landed. Closing bug. |