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

Boris Zbarsky bzbarsky at MIT.EDU
Thu May 12 13:51:37 PDT 2011


On 5/12/11 4:28 PM, Aryeh Gregor wrote:
> * Firefox 4.0 just uses<br _moz_dirty="">  for Enter and Shift-Enter,
> always.  (What's _moz_dirty for?)

It's used when serializing: things with _moz_dirty are prettyprinted 
even if the serialization is trying to preserve the original whitespace 
layout of the HTML in general.

The fact that it's an actual content attribute is a bug dating back to 
when there was no other good way to associate state to an element in 
Gecko; we just need to fix that.  See 
https://bugzilla.mozilla.org/show_bug.cgi?id=459212

-Boris



More information about the whatwg mailing list