Bug 46757

Summary: placeholder text doesn't disappear on inputs with autofocus
Product: WebKit Reporter: Kyle Fox <kyle.fox>
Component: FormsAssignee: Nobody <webkit-unassigned>
Status: RESOLVED DUPLICATE    
Severity: Normal CC: kyle.fox, tkent
Priority: P2    
Version: 528+ (Nightly build)   
Hardware: Mac   
OS: OS X 10.6   
URL: http://dl.dropbox.com/u/780754/webkit_bug.html

Kyle Fox
Reported 2010-09-28 15:17:55 PDT
First noticed in Version 5.0.1 (6533.17.8, r68419) Placeholder text does not disappear when the <input> element has the autofocus attribute (either short-hand or normal syntax). To reproduce: 1. Create a text input with the autofocus attribute and some placeholder text: <input type="text" placeholder="Your name" autofocus="true" /> 2. Focus on a different element (eg: click the page background or something). 3. Return focus to the input. You'll notice the placeholder text doesn't automatically disappear, and is now selectable. I created a demo page here (remember to click the background first): http://dl.dropbox.com/u/780754/webkit_bug.html I recorded a quick screencapture of this: http://screenr.com/yB4
Attachments
Kyle Fox
Comment 1 2010-09-28 15:22:04 PDT
Similar to #45940
Kent Tamura
Comment 2 2010-09-28 16:41:32 PDT
*** This bug has been marked as a duplicate of bug 45940 ***
Note You need to log in before you can comment on or make changes to this bug.