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:55:14 -0700
Message-ID: <CABNRm61wt-1W6DPyxDG5vv=qZrj2dZp_EK-dNMXx6PUU2v9+Tw@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:49 AM, Ojan Vafai <ojan@chromium.org> wrote:

> textContent will strip a bunch of visible content (images, iframes,
> embeds, etc.).
> Another edge case to consider:
> <div contentEditable placeholder=foo><div
> style="background-color:red;width:100px;height:100px"></div></div>

Should that be considered as non-empty? If so, maybe we should define it as
either the content height or the content width being 0?

But what about <div>&nbsp;</div>? Should this also be considered as

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

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