Bug 73615

Summary: [Lion][Windows] Both of placeholder and input text are shown in <input type=number>
Product: WebKit Reporter: Kent Tamura <tkent>
Component: FormsAssignee: Kent Tamura <tkent>
Status: RESOLVED FIXED    
Severity: Normal CC: darin, joepeck, jonlee, sam, webkit.review.bot
Priority: P2    
Version: 528+ (Nightly build)   
Hardware: Mac   
OS: OS X 10.7   
Bug Depends on:    
Bug Blocks: 73629    
Attachments:
Description Flags
Patch none

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.