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

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 UTC