Re: [whatwg] Placeholder visibility on focus

2012-01-20 Thread Ian Hickson
On Tue, 19 Jul 2011, TAMURA, Kent wrote: http://www.whatwg.org/specs/web-apps/current-work/multipage/common-input-element-attributes.html#the-placeholder-attribute �User agents should present this hint to the user, after having�stripped line breaks�from it, when the element's�value�is the

[whatwg] Placeholder visibility on focus

2011-07-19 Thread TAMURA, Kent
http://www.whatwg.org/specs/web-apps/current-work/multipage/common-input-element-attributes.html#the-placeholder-attribute  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 and the control is not focused

Re: [whatwg] Placeholder visibility on focus

2011-07-19 Thread Thomas Maas
Agreed, instead of checking for an empty string *and* focus the user agent should just check for an empty string. current spec: when the element's value is the empty string and the control is not focused (e.g. by displaying it inside a blank unfocused control) proposed spec: when the

Re: [whatwg] Placeholder visibility on focus

2011-07-19 Thread Darin Adler
On Jul 19, 2011, at 3:55 AM, Thomas Maas wrote: instead of checking for an empty string *and* focus the user agent should just check for an empty string. I think that for some user agents, whether the placeholder text is shown when the field is focused should depend on platform behavior.

Re: [whatwg] Placeholder visibility on focus

2011-07-19 Thread Thomas Maas
On Jul 19, 2011, at 19:12 , Darin Adler wrote: On Jul 19, 2011, at 3:55 AM, Thomas Maas wrote: instead of checking for an empty string *and* focus the user agent should just check for an empty string. I think that for some user agents, whether the placeholder text is shown when the