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

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
non-empty?

- Ryosuke

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