Opened 12 years ago
Last modified 11 years ago
#10477 confirmed Bug
Exception on DELETE key
Reported by: | WebSpellChecker.net | Owned by: | |
---|---|---|---|
Priority: | Normal | Milestone: | |
Component: | Core : Selection | Version: | 3.6.1 |
Keywords: | IE8 IE7 | Cc: | jpleer@… |
Description
Steps to reproduce:
- Open page with empty CKEditor in IE8.
- Type any word with space ("example ")
- Select word without space ("[example] ")
- Press 'Bold' to make selected word bolded.
- Press 'Bold' to remove bold style
- Put cursor at the start of document
- Press and hold DELETE key.
After removing of last character 'e' see the error in browser console.
Attachments (1)
Change History (7)
comment:1 Changed 12 years ago by
Cc: | jpleer@… added |
---|
comment:2 Changed 12 years ago by
Keywords: | IE7 added; Selection Delete removed |
---|---|
Status: | new → confirmed |
Version: | 4.0 → 3.6.1 |
Changed 12 years ago by
Attachment: | Debug IE Screenshot.png added |
---|
comment:3 Changed 12 years ago by
The error is throwing at the following line, precisely:
https://github.com/ckeditor/ckeditor-dev/blob/a609ec5/core/selection.js#L948
It happens because that space is transformed in
at some point. For some weird (typically IE) reason, that the way IE sees that text node:
So, even if that node is valid and it is present in the DOM, IE can't handle it.
Our biggest problem is that we need to count that space in the range calculations. I still don't know how to make it happen.
comment:4 Changed 12 years ago by
There seems to be other TCs and other repositories from which this error starts being thrown:
- Open editor and press new page command.
- Switch to source and paste below:
<p> <strong>dfgdg</strong> dfg <strong>dfg</strong> dfg dg <strong>dfg</strong> df <strong>gdfgdgdfgdfgdfgdfgdfg</strong></p> <p> df <strong>gdf</strong> <strong>gdfgdfgdfgdfgdfgdf</strong> gdgdf dgf</p>
- Switch to source and click outside of editor
- Click at the beginning of text
- Press Delete and hold it
Result Invalid Argument is thrown from CKEditor 3.5.2
- Open editor and press new page command.
- type two lines of misspelled words e.g.
<p> dfgdfg dfg dfg dfg dfg dfg dfg fdgdgdf g</p> <p> df dfg dfg dfg dfgdfg df g</p>
- Enable SCAYT
- Click at the beginning of text
- Press Delete and hold it
Result Invalid Argument is thrown from CKEditor 3.5.3 rev. [6593]
comment:5 Changed 12 years ago by
There is also another TC and another bug with invalid argument reported: #10584
Problem can be reproduced in IE8 and IE7 from CKEditor 3.6.1 rev. [6919]. Problem is also reproducible in 4.x branch.
JS ERROR:
Message: Invalid argument
Line: 973
URI: /ckeditor/plugins/selection/plugin.js
Other errors where this repository is mentioned: #8166, #8667, #9176.