[whatwg] Placeholder option for text input boxes

Kristof Zelechovski giecrilj at stegny.2a.pl
Sat Oct 4 07:34:36 PDT 2008

Does the hint display if the input control gets cleared after loading?

IMHO, The hint should not disappear on focus.  It should remain until a new
value is entered.




From: Tab Atkins Jr. [mailto:jackalmage at gmail.com] 
Sent: Saturday, October 04, 2008 4:15 PM
To: Kristof Zelechovski
Subject: Re: [whatwg] Placeholder option for text input boxes


On Sat, Oct 4, 2008 at 9:04 AM, Kristof Zelechovski <giecrilj at stegny.2a.pl>
> TJ Atkins said:
>>Man, I could *really* see the "hint" function being viable and quite
useful.  It offers up a completely new-and-useful semantic, and there's no
particular place it should already go.  I'd accept this as a new attribute
without reservation if it was renamed @hint, so it's absolutely clear what
the semantic for it is.
> What happens if a hint and a value are both specified?

The value would display.  The hint only displays when the input is both
empty and not focussed.  @value negates the first condition.

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.whatwg.org/pipermail/whatwg-whatwg.org/attachments/20081004/f75cbf91/attachment-0001.htm>

More information about the whatwg mailing list