Opened 6 years ago

Last modified 4 years ago

#18854 new defect

IE11 RichText with EnterKeyHandling on DIV or P creates extraneous new lines on Backspace/Enter

Reported by: danielf Owned by: bill
Priority: undecided Milestone: 1.14
Component: Editor Version: 1.11.1
Keywords: Cc:
Blocked By: Blocking:


This issue can be reproduced in the demo at

To reproduce, add three lines of text, such as:


Place the cursor at the beginning of the Test2 line and press Backspace. This will produce:


Now, with the selection between the 1 and the T still, press Enter. The expected result would be the original three lines of text. The actual result is:



This can be repeated multiple times to create multiple extraneous new lines. Note that if the original text entered has Test1Test2 on the same line together, selecting between the 1 and T and pressing Enter will exhibit the expected behavior.

The problem seems to come from an issue with IE giving different containers for the range. When Backspace has been used, the check on line 467 of EnterKeyHandling?.js, if(rs && rs.nodeType == 3) will not give a nodeType of 3.

The same sort of behavior is seen when collapsing lines together with Delete.

Change History (4)

comment:1 Changed 6 years ago by bill

Component: DijitEditor

comment:2 Changed 6 years ago by dylan

Milestone: tbd1.11.3

comment:3 Changed 5 years ago by dylan


comment:4 Changed 4 years ago by dylan

Milestone: 1.131.14
Note: See TracTickets for help on using tickets.