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

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

From: Garrett Smith <dhtmlkitchen@gmail.com>
Date: Fri, 22 Mar 2013 16:50:11 -0700
Message-ID: <CABZUbM3fMiT32pE-eviOkcD1nkJt1tZL1nULHT8+WsxnS535Xg@mail.gmail.com>
To: Markus Ernst <derernst@gmx.ch>
Cc: whatwg <whatwg@lists.whatwg.org>
On 3/18/13, Markus Ernst <derernst@gmx.ch> wrote:
> Hello Whatwg
>
> On several occasions I encountered that users got confused by the
> placeholders on input fields. In a doodle.com survey last week, 2 out of
> 5 people answered me via e-mail that they were not able to fill in their
> names in the "name" field, because they tried to highlight and delete
> the placeholder saying "Your name".
>
As an example, ergo-log.com search box uses the INPUT's 'value' for
placeholder text, requiring the user to select and change its value.


> User agents should present this hint to the user, after having stripped
> line breaks from it, when the element's value is the empty string or the
> control is not focused (or both), e.g. by displaying it inside a blank
> unfocused control and hiding it otherwise.
>
Awkward.

> To:
>
> ...when the element's value is the empty string _and_ the control is not
> focused, e.g. by displaying ...
Clearer and makes sense from a U/X perspective.

When the field is focused automatically with autofocus, should the
placeholder be hidden or is this a special case?
-- 
Garrett
Twitter: @xkit
personx.tumblr.com
Received on Friday, 22 March 2013 23:50:34 GMT

This archive was generated by hypermail 2.3.1 : Friday, 22 March 2013 23:50:35 GMT