Bug 46757
Summary: | placeholder text doesn't disappear on inputs with autofocus | ||
---|---|---|---|
Product: | WebKit | Reporter: | Kyle Fox <kyle.fox> |
Component: | Forms | Assignee: | 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
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 | ||
---|---|---|
Add attachment proposed patch, testcase, etc. |
Kyle Fox
Similar to #45940
Kent Tamura
*** This bug has been marked as a duplicate of bug 45940 ***