Bug 46757 - placeholder text doesn't disappear on inputs with autofocus
Summary: placeholder text doesn't disappear on inputs with autofocus
Status: RESOLVED DUPLICATE of bug 45940
Alias: None
Product: WebKit
Classification: Unclassified
Component: Forms (show other bugs)
Version: 528+ (Nightly build)
Hardware: Mac OS X 10.6
: P2 Normal
Assignee: Nobody
URL: http://dl.dropbox.com/u/780754/webkit...
Keywords:
Depends on:
Blocks:
 
Reported: 2010-09-28 15:17 PDT by Kyle Fox
Modified: 2010-09-28 16:41 PDT (History)
2 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Kyle Fox 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
Comment 1 Kyle Fox 2010-09-28 15:22:04 PDT
Similar to #45940
Comment 2 Kent Tamura 2010-09-28 16:41:32 PDT

*** This bug has been marked as a duplicate of bug 45940 ***