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

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 UTC