Gecko 1.8 needs a <br> tag inside an element with contenteditable="true", even if the element is empty! If no such element existes, Gecko automatically adds it. These elements can be recognized by the proprietary attribute _moz_editor_bogus_node:
<br _moz_editor_bogus_node="TRUE" _moz_dirty=""/>
-
Setting a background color for text on
collapsed selection is not working like in Gecko or
IE. Instead of setting the background color and allowing the user to type ahead in the new background color (like in Gecko/
IE) nothing happens. The current solution in the HtmlArea is to select the word currently under the caret and to set the background color on this selection. Working on a user-selection works as expected.
Deleting a block element (e.g. an <p> tag) can cause an element to contain
two text nodes:

This wrong behavior can cause problems with selections.