W3C home > Mailing lists > Public > public-webapps@w3.org > January to March 2012

Re: Pressing Enter in contenteditable: <p> or <br> or <div>?

From: Ryosuke Niwa <rniwa@webkit.org>
Date: Thu, 12 Jan 2012 02:05:58 -0800
Message-ID: <CABNRm61Bf_64bt6hSDmLUpLGX6=4+LCnBXaX+DVzmH2beiSRkw@mail.gmail.com>
To: "Hallvord R. M. Steen" <hallvord@opera.com>
Cc: Markus Ernst <derernst@gmx.ch>, Simon Pieters <simonp@opera.com>, Aryeh Gregor <ayg@aryeh.name>, Ojan Vafai <ojan@chromium.org>, Ehsan Akhgari <ehsan@mozilla.com>, "Michael A. Puls II" <shadow2531@gmail.com>, WebApps WG <public-webapps@w3.org>
On Thu, Jan 12, 2012 at 1:58 AM, Hallvord R. M. Steen <hallvord@opera.com>wrote:

> On Wed, 11 Jan 2012 18:31:26 +0100, Ryosuke Niwa <rniwa@webkit.org> wrote:
>
>  Actually, applying p {margin:0} looks quite trivial.
>>>
>>
>> The problem is that many existing contents don't have that css rule and
>> we obviously don't want to create markup like <p style="margin: 0px;"> for
>> it is too verbose.
>>
>
> Probably a stupid question, but one I've always wanted to ask: couldn't we
> default to a different, smaller, possibly 0 margin for P when in editable
> content?


We could but then existing mail clients, Web UAs, etc... will continue to
have those margins. Given many websites store markups generated by UAs in
contenteditable to be rendered by other UAs, adding such a style doesn't
solve anything in my opinion.

- Ryosuke
Received on Thursday, 12 January 2012 14:08:30 GMT

This archive was generated by hypermail 2.3.1 : Tuesday, 26 March 2013 18:49:49 GMT