[whatwg] <input placeholder="">

Ojan Vafai ojan at chromium.org
Mon Nov 17 08:52:22 PST 2008


On Mon, Nov 17, 2008 at 2:05 AM, Ian Hickson <ian at hixie.ch> wrote:

> On Tue, 30 Sep 2008, Andy Lyttle wrote:
> >
> > As I understand it, it was sort of an accident that Safari supports
> > placeholder on anything other than search fields, but there's no reason
> > it shouldn't apply to all text input fields including textarea.
> >
> > I've just filed https://bugs.webkit.org/show_bug.cgi?id=21248
>
> I've made it (in the spec) apply to types text, email, url, and password.
>

This is a useful property on any text input element. Seems like it should
apply to textareas as well as contentEditable elements and iframes with
designMode on. I can point to real-world examples of the latter if need be.
I think it's acceptable that it be a plain-text string in all cases, but
that it ought to also be CSS styleable. I don't know if html5 is the right
place to spec that. WebKit currently uses the
input::-webkit-input-placeholder.

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


More information about the whatwg mailing list