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

[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>
On Wed, May 2, 2012 at 10:49 AM, Ojan Vafai <ojan at 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
non-empty?

- Ryosuke
Received on Wednesday, 2 May 2012 10:55:14 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Wednesday, 30 January 2013 18:48:08 GMT