Opened 17 years ago
Closed 17 years ago
#571 closed Bug (fixed)
Opera: Backspace is broken
Reported by: | Frederico Caldeira Knabben | Owned by: | Hallvord R. M. Steen (Opera Software) |
---|---|---|---|
Priority: | Must have (possibly next milestone) | Milestone: | Opera Compatibility |
Component: | General | Version: | SVN (FCKeditor) - Retired |
Keywords: | Opera | Cc: | Hallvord R. M. Steen (Opera Software) |
Description
The backspace keystroke behavior is completely broken.
Steps to Reproduce
- Load sample01.html;
- Place the cursor after the sample text and hit [Enter];
- Type "Test" and hit [Backspace] (wrong behavior);
- Hit [Backspace] some few times (wrong behavior).
Tested with Opera build 9418.
Attachments (1)
Change History (4)
Changed 17 years ago by
Attachment: | split_text_on_backspace.htm added |
---|
comment:1 Changed 17 years ago by
Owner: | set to Hallvord R. M. Steen (Opera Software) |
---|---|
Status: | new → assigned |
comment:3 Changed 17 years ago by
Resolution: | → fixed |
---|---|
Status: | assigned → closed |
My new attachment shows the problem. It is caused by the DOM modifications going on in FCKW3CRange.prototype._ExecContentsAction. Opera obviously invalidates some internal range representation when the text node the cursor is placed in is modified through the DOM, meaning the cursor will end up at the start of the text node.
I think what we do is fairly reasonable and that you should restore the cursor position in the document after such DOM modifications, but I'll assign to self for now and ask our developers if we can fix it since Firefox handles this test case so well..