W3C home > Mailing lists > Public > whatwg@whatwg.org > May 2007

[whatwg] [WF2] Clear On Focus attribute

From: Maciej Stachowiak <mjs@apple.com>
Date: Wed, 23 May 2007 13:05:16 -0700
Message-ID: <78EF2E16-0938-4AD2-AE94-B2D787EEEA8E@apple.com>

On May 23, 2007, at 10:02 AM, Charles Iliya Krempeaux wrote:

> So... perhaps we can come up with a way for them to get this effect,
> while preserving semantics.
> Maybe a new attribute?  "innerlabel" maybe... or something like that.
> So, maybe something like....
> <input type="search" innerlabel="search in vancouver...">
> (And this would have the effect described in the original post.  I.e.,
> a text input box with "search in vancouver..." inside of it.  When the
> use clicks in the text input box, that text disappears.)

Did you see the proposal to use WebKit's "placeholder" attribute for  
this purpose? It already works the way you suggest.

Received on Wednesday, 23 May 2007 13:05:16 UTC

This archive was generated by hypermail 2.4.0 : Wednesday, 22 January 2020 16:58:55 UTC