W3C home > Mailing lists > Public > public-whatwg@w3.org > May 2012

Re: [whatwg] Should editable elements have placeholder attribute?

From: Ryosuke Niwa <rniwa@webkit.org>
Date: Wed, 2 May 2012 10:08:46 -0700
Message-ID: <CABNRm63eHQEXv0vUKorfko5TJO2H2_czSB0C+yavs0y3T0mn2Q@mail.gmail.com>
To: Ojan Vafai <ojan@chromium.org>
Cc: whatwg@lists.whatwg.org, David Hyatt <hyatt@apple.com>, Adele Peterson <adele@apple.com>, Aryeh Gregor <ayg@aryeh.name>
On Wed, May 2, 2012 at 10:06 AM, Ojan Vafai <ojan@chromium.org> wrote:

> I'm OK with having when the placeholder is displayed be up to the UA. I
> can see that being platform specific.
> But, we should spec when content is eligible for showing a placeholder
> (i.e. we should define what "looks empty" means). I don't see any benefit
> in browsers behaving differently here. This part is not platform-specific.
> It's just hard to figure out how to spec it.

Maybe when element.innerText or element.textContent is empty?

- Ryosuke
Received on Wednesday, 2 May 2012 17:09:35 UTC

This archive was generated by hypermail 2.4.0 : Wednesday, 22 January 2020 17:07:52 UTC