Consider a <div contenteditable="true">
with children elements. These children are not editable.
All kinds of edits work fine within this div
, except when the entire text is deleted. At this point, the div
loses it's edit-ability. Things work fine in the absence of children elements.
Here's the fiddle in action. Open on Chrome. Firefox works fine.