Steps to reproduce the problem:
1. Focus contenteditable with non-editable **block** as a first/last child.
2. Put caret in some editable paragraph next to non-editable block.
3. Press CTRL+A (or document.execCommand( 'SelectAll' ))
4. Nothing is selected: collapsed selection opposite to the non-editable block.
(!) See attached sample for rich examples.
Instead of containing all the contents of contenteditable, the selection gets collapsed opposite to non-editable block e.g. when non-editable block is first child, the selection goes to the end of contenteditable (and vice-versa). The entire content of contenteditable should be selected once CTRL+A is pressed. It works when **inline** non-editable element is first/last child.
I'm able to reproduce it in latest Safari, Chrome, Chromium and Opera. This bug is critical for CKEditor (http://dev.ckeditor.com/ticket/11180) and other WYSIWYG HTML editors.
Created attachment 217662 [details]
Sample to reproduce the issue.