<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://bugs.webkit.org/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.4.1"
          urlbase="https://bugs.webkit.org/"
          
          maintainer="admin@webkit.org"
>

    <bug>
          <bug_id>46757</bug_id>
          
          <creation_ts>2010-09-28 15:17:55 -0700</creation_ts>
          <short_desc>placeholder text doesn&apos;t disappear on inputs with autofocus</short_desc>
          <delta_ts>2010-09-28 16:41:32 -0700</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>WebKit</product>
          <component>Forms</component>
          <version>528+ (Nightly build)</version>
          <rep_platform>Mac</rep_platform>
          <op_sys>OS X 10.6</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>DUPLICATE</resolution>
          <dup_id>45940</dup_id>
          
          <bug_file_loc>http://dl.dropbox.com/u/780754/webkit_bug.html</bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P2</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>0</everconfirmed>
          <reporter name="Kyle Fox">kyle.fox</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>kyle.fox</cc>
    
    <cc>tkent</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>286569</commentid>
    <comment_count>0</comment_count>
    <who name="Kyle Fox">kyle.fox</who>
    <bug_when>2010-09-28 15:17:55 -0700</bug_when>
    <thetext>First noticed in Version 5.0.1 (6533.17.8, r68419)

Placeholder text does not disappear when the &lt;input&gt; 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: &lt;input type=&quot;text&quot; placeholder=&quot;Your name&quot; autofocus=&quot;true&quot; /&gt;

    2. Focus on a different element (eg: click the page background or something).

    3. Return focus to the input.  You&apos;ll notice the placeholder text doesn&apos;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</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>286572</commentid>
    <comment_count>1</comment_count>
    <who name="Kyle Fox">kyle.fox</who>
    <bug_when>2010-09-28 15:22:04 -0700</bug_when>
    <thetext>Similar to #45940</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>286624</commentid>
    <comment_count>2</comment_count>
    <who name="Kent Tamura">tkent</who>
    <bug_when>2010-09-28 16:41:32 -0700</bug_when>
    <thetext>

*** This bug has been marked as a duplicate of bug 45940 ***</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>