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

[whatwg] [WF2] Clear On Focus attribute

From: Charles Iliya Krempeaux <supercanadian@gmail.com>
Date: Wed, 23 May 2007 13:15:57 -0700
Message-ID: <84ce626f0705231315j784d37a2v61918a99b0056a33@mail.gmail.com>
Hello,

On 5/23/07, Maciej Stachowiak <mjs at apple.com> wrote:
>
> 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.

Guess that's another reason to have an attribute like that in HTML5 :-)

-- 
    Charles Iliya Krempeaux, B.Sc.

    charles @ reptile.ca
    supercanadian @ gmail.com

    developer weblog: http://ChangeLog.ca/
Received on Wednesday, 23 May 2007 13:15:57 UTC

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