W3C home > Mailing lists > Public > whatwg@whatwg.org > March 2013

Re: [whatwg] Hide placeholder on input controls on focus

From: Boris Zbarsky <bzbarsky@MIT.EDU>
Date: Mon, 18 Mar 2013 08:27:48 -0400
Message-ID: <51470844.2090800@mit.edu>
To: whatwg@lists.whatwg.org
On 3/18/13 5:31 AM, Markus Ernst wrote:
> - Opera and Safari hide it when the field gets focus

The behavior of Safari here is platform-dependent or possibly 
version-dependent.  Safari 6 on Mac doesn't hide the placeholder until 
you start typing.

> ...when the element's value is the empty string _and_ the control is not
> focused, e.g. by displaying ...

I believe the spec used to say this and got changed.  Certainly the 
Gecko implementation did this and got changed.  It's worth looking into 
why the changes were made before simply trying to revert them.

-Boris
Received on Monday, 18 March 2013 12:28:15 GMT

This archive was generated by hypermail 2.3.1 : Monday, 18 March 2013 12:28:16 GMT