Steps to reproduce
There is an error in Microsoft Edge 15 with
contenteditable element. When I select whole text and then remove it pressing i.e. backspace key, it removes whole DOM node.
<span contenteditable="true"> Focus on me -> Ctrl + A -> Backspace </span>
Other browsers just remove contents but not entire element.
Comments and activity
- Microsoft Edge Team
Changed Assigned To to “James M.”
Changed Assigned To to “Grisha L.”
Changed Status to “Confirmed”
I also observe this issue for elements. my code:
inserting caret before bar and pressing backspace will remove the node
forgot to add the CODE tags:
my code was using DIV elements with contenteditable, with OL and LI tags nested in the DIV.
Seems to occur only for inline elements, not with display: block.
Also, without selecting all by Ctrl-A or dragging, if you just repeatedly hit backspace the first character won’t delete.