This behaviour is observed in Chrome. When we have a block element with no text and contentEditable set to false, browser is not able to select the text content.
Whereas the same code snippet works correctly in Firefox
So is this a bug in Chrome or expected behaviour ?
<div id="contentsContainer" contenteditable="true" >
<div id="contents">
<div id="section">
<div>
<div>
<div contenteditable="false" id="imgContainer" style="display:block;">
<span contenteditable="false"></span>
</div>
</div>
</div>
<div>
<p>
<span>
Some text
</span>
</p>
</div>
</div>
</div>