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: Tue, 10 Jan 2012 12:50:34 -0800
Message-ID: <CABNRm62sX-ZQuS6nnFdb51dg61-7okjTTLSt=Jvrjth9vyov=w@mail.gmail.com>
To: Aryeh Gregor <ayg@aryeh.name>
Cc: Ojan Vafai <ojan@chromium.org>, Ehsan Akhgari <ehsan@mozilla.com>, Simon Pieters <simonp@opera.com>, "Michael A. Puls II" <shadow2531@gmail.com>, Markus Ernst <derernst@gmx.ch>, "Hallvord R. M. Steen" <hallvord@opera.com>, WebApps WG <public-webapps@w3.org>
On Tue, Jan 10, 2012 at 12:46 PM, Aryeh Gregor <ayg@aryeh.name> wrote:
>  On Tue, Jan 10, 2012 at 3:40 PM, Ryosuke Niwa <rniwa@webkit.org> wrote:
> > Single br tag is shorter than pairs of div tags when serialized.
> True, but only slightly, and the difference is even smaller if you use
> <p> instead of <div>.  This isn't enough of a reason by itself to
> justify the extra complexity of another mode.  Are there other
> reasons?

p has default margins. That alone is enough for us not to adopt p as
the default paragraph separator. Also, unfortunately, there are many legacy
contents that rely on the fact webkit uses div as the paragraph separator
so we need a global or per editing-host switch regardless.

I almost want a global switch to toggle between legacy UA-specific behavior
and new spec-compliant behavior.

- Ryosuke
Received on Tuesday, 10 January 2012 20:51:22 UTC

This archive was generated by hypermail 2.3.1 : Friday, 27 October 2017 07:26:38 UTC