[whatwg] [WF2] Clear On Focus attribute

Maciej Stachowiak mjs at apple.com
Wed May 23 13:05:16 PDT 2007

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.


More information about the whatwg mailing list