Opened 14 years ago
Closed 14 years ago
#6385 closed Bug (duplicate)
IE throws Javascript error when using anchor
Reported by: | Flo Schuessel | Owned by: | |
---|---|---|---|
Priority: | Normal | Milestone: | |
Component: | General | Version: | 3.4.1 |
Keywords: | Cc: |
Description
When you select text an try to set an anchor IEs come up with an error "Invalid argument".
Attachments (3)
Change History (7)
comment:1 Changed 14 years ago by
Status: | new → pending |
---|
comment:2 Changed 14 years ago by
I testet:
- IE 6 Win XP (native, no IE Collection or sth.)
- IE 7 Win XP (native, no IE Collection or sth.)
- IE 8 Win XP (native, no IE Collection or sth.)
The test was also done on your demo page (full demo). Select some text, then press anchor, set some text and on the first click there is a javascript error. Second click sets the anchor then but without text. This is on IE6 and IE8 the case.
On IE7 the first anchor is set correctly (with the selected text remaining) but a setting a second anchor fails as described above.
I'll attach screens of each browser.
Changed 14 years ago by
Attachment: | IE6WinXP.png added |
---|
Changed 14 years ago by
Attachment: | IE7WinXP.png added |
---|
Changed 14 years ago by
Attachment: | IE8WinXP.png added |
---|
comment:3 Changed 14 years ago by
Status: | pending → confirmed |
---|
Although i can't reproduce this on any of my local working copies, i DO can reproduce it on demo page.
Problem seems to be caused by /core/dom/range.js L71:
startNode.split( startOffset );
and to be exact, /core/dom/text.js L93:
var retval = new CKEDITOR.dom.text( this.$.splitText( offset ), doc );
This looks quite familiar, do we already have a ticket for this part of code ?
comment:4 Changed 14 years ago by
Resolution: | → duplicate |
---|---|
Status: | confirmed → closed |
I think that all the issues with anchors are addressed with the patch in #3582. Marking as dup.
Cannot reproduce it, what version of IE are you using ? Is it reproducible on our demo page ?