<div class="editable" contenteditable="true"><p>paragraph one</p><p>paragraph two</p></div>
<hr/>
<p>How to reproduce the bug:</p>
<ul>http://jsfiddle.net/dizel3d/sz5qnncp/15/#set-as-base
<li>Focus the contenteditable above by placing the cursor somewhere in one of the two paragraphs.</li>
<li>press ctrl-a (in windows or linux) or cmd-a (in osx) to select-all</li>
<li>type some text</li>
<li>red text means that the text went directly inside the contenteditable div, black text means it went inside a paragraph</li>
</ul>
<p>The correct behaviour should be that that select-all and delete (or "type-over") in a contenteditable with only block tags should leave the cursor inside the first block tag.</p>
<p>Webkit gets this right, Firefox gets it wrong.</p>