Opened 11 years ago
Last modified 10 years ago
#10584 confirmed Bug
IE8 throws error on delete — at Initial Version
Reported by: | Jakub Ś | Owned by: | |
---|---|---|---|
Priority: | Normal | Milestone: | |
Component: | General | Version: | 3.3 |
Keywords: | IE8 | Cc: | jpleer@… |
Description
To reproduce:
- Open CKEditor demo
- Click before
^Appollo
- Press delete and hold it.
Result JS error is thrown.
Message: Invalid argument
Line : 295
URI: /ckeditor4/core/dom/node.js
Problem can be reproduced in both branches CKE 3.x and 4.x. I was able to reproduce it from CKEditor 3.3.
Bug History:
Invalid argument has been thrown from CKEditor 3.3. but it was thrown by different parts of code
- 3.3 - 3.6 - /cke3.6/_source/core/dom/text.js; Line 62;
- 3.6.1 - 4.1.2 - /cke3.6.3/ckeditor/_source/plugins/selection/plugin.js; Line: 911 and /cke3.6.6/ckeditor/_source/core/dom/node.js; Line: 234.
- I was not able to get right repository - in source version first error is thrown even in CKE 3.6.2 while in release code till 3.6.1.
Possible reason:
It has turned out in my tests that simple space between image and Apollo word is to blame. If I have removed this space there was no error.
<h1><img alt="Saturn V carrying Apollo 11" class="right" src="assets/sample.jpg" /> Apollo 11</h1>
In CKEditor 4.x this image is aligned to the right and it doesn't look like source of the problem but in older versions there is something extra happening which may prove what I have written.
Copy sample code from CKE 4.x to 3.x - till version 3.3 When you removed image space was left and no error occurred. From CKE 3.3 removing image removes also this space.