W3C home > Mailing lists > Public > whatwg@whatwg.org > May 2011

[whatwg] Pressing Enter in contenteditable: <p> or <br> or <div>?

From: Ehsan Akhgari <ehsan@mozilla.com>
Date: Fri, 13 May 2011 18:05:23 -0400
Message-ID: <4DCDAB23.4050009@mozilla.com>
On 11-05-13 2:25 PM, Boris Zbarsky wrote:
>> I just tested innerHTML,
>> and I found it stripped the attribute, but it didn't seem to add any
>> whitespace around<br>,<ol>, or<li>.
> innerHTML uses OutputRaw which ensures that no prettyprinting happens
> ever, no matter what, even if a gun is held to the serializer's head. In
> particular, it overrides the _moz_dirty flag.
> Similar for copy/paste.
> I would suspect that there is no web-observable serialization behavior
> that depends on _moz_dirty.

I think that's true, as we don't expose pretty printed serialization of 
the DOM to the web to the best of my knowledge.

Received on Friday, 13 May 2011 15:05:23 UTC

This archive was generated by hypermail 2.3.1 : Monday, 13 April 2015 23:09:06 UTC