在Chrome中观察到此行为。 当我们有一个没有text且contentEditable设置为false的块元素时,浏览器无法选择文本内容。
虽然相同的代码段在Firefox中正常工作
这是Chrome中的错误还是预期的行为?
<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>