Bug 73615 - [Lion][Windows] Both of placeholder and input text are shown in <input type=number>
Summary: [Lion][Windows] Both of placeholder and input text are shown in <input type=n...
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: Forms (show other bugs)
Version: 528+ (Nightly build)
Hardware: Mac OS X 10.7
: P2 Normal
Assignee: Kent Tamura
URL:
Keywords:
Depends on:
Blocks: 73629
  Show dependency treegraph
 
Reported: 2011-12-01 20:25 PST by Kent Tamura
Modified: 2011-12-02 13:50 PST (History)
5 users (show)

See Also:


Attachments
Patch (6.76 KB, patch)
2011-12-01 21:22 PST, Kent Tamura
no flags Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Kent Tamura 2011-12-01 20:25:51 PST
This problem happens only OS X Lion and Windows, that is to say, RenderTheme*::shouldShowPlaceholderWhenFocused() returns true.

How to reproduce:
1. Focus on a number input with a placeholder such as <input type=number placeholder=placeholder>
2. Type non-digit characters.  e.g. 'aaa'

Expected result:
3. The placeholder disappears.

Actual result:
3. Both of the placeholder and 'aaa' are shown.
Comment 1 Kent Tamura 2011-12-01 21:22:11 PST
Created attachment 117561 [details]
Patch
Comment 2 Joseph Pecoraro 2011-12-02 10:35:55 PST
Comment on attachment 117561 [details]
Patch

Oh nice, is this a ref test? Awesome!

r=me
Comment 3 Kent Tamura 2011-12-02 13:50:51 PST
Comment on attachment 117561 [details]
Patch

Clearing flags on attachment: 117561

Committed r101847: <http://trac.webkit.org/changeset/101847>
Comment 4 Kent Tamura 2011-12-02 13:50:57 PST
All reviewed patches have been landed.  Closing bug.