[whatwg] Hide placeholder on input controls on focus
bzbarsky at MIT.EDU
Mon Mar 18 05:27:48 PDT 2013
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.
More information about the whatwg