- From: Ryosuke Niwa <rniwa@webkit.org>
- Date: Tue, 1 May 2012 23:59:06 -0700
On Tue, May 1, 2012 at 11:09 PM, Aryeh Gregor <ayg at aryeh.name> wrote: > On Wed, May 2, 2012 at 8:00 AM, Ryosuke Niwa <rniwa at webkit.org> wrote: > > Would it be useful to have placeholder content attribute on elements that > > are editable? (i.e. contenteditable=true). > > > > According to the original WebKit bug > > 21286<https://bugs.webkit.org/show_bug.cgi?id=21286>, > > this may reduce the amount of code authors have to write. > > This sounds like a good idea to me. > Great. I think the tricky part will be defining exactly how and when the placeholder is displayed. e.g. Should it be treated as if there is a text node in the editable element? Should we ignore things like "<br>" or collapsible spaces when determining whether the element is empty or not? - Ryosuke
Received on Tuesday, 1 May 2012 23:59:06 UTC