[whatwg] Should editable elements have placeholder attribute?

Ryosuke Niwa rniwa at webkit.org
Wed May 2 10:55:14 PDT 2012

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> </div>? Should this also be considered as

- Ryosuke

More information about the whatwg mailing list