Opened 12 years ago

Closed 10 years ago

#8869 closed Bug (wontfix)

IE6 : CKEDITOR.dom.node.replace() fails with invalid argument error

Reported by: jfernandez_wa Owned by:
Priority: Normal Milestone:
Component: General Version: 3.0
Keywords: IE6 IE7 Cc:


This code is somewhat sloppy but I had to kludge together an example from a plugin I'm trying to integrate.

Setup: I entered one word of text into CKEditor, which when you view source looks like this:


The following JavaScript works fine in Firefox, Chrome, and IE8:

	var new_node = CKEDITOR.dom.element.createFromHtml( '<span>Hello!</span>' );
	var old_node = CKEDITOR.instances.FCKeditor1.document.getDocumentElement().getChildren().getItem(1)['$'].childNodes[0];

All other browsers replace "word" with "<span>Hello!<span>". IE 6 throws an error indicating "Invalid Argument."

This may be related to this EXT JS bug where the author states "Internet Explorer throws an exception when no target node is specified in a call to the insertBefore() method of a native DOM object (other browsers just append the new node at the end in this case)."

I have tried the workaround listed there but to no avail. Any help would be awesome :)

Change History (2)

comment:1 Changed 12 years ago by Jakub Ś

Keywords: IE6 IE7 added
Status: newconfirmed

Reproducible in IE6 and IE7 from CKEditor 3.0

comment:2 Changed 10 years ago by Piotrek Koszuliński

Resolution: wontfix
Status: confirmedclosed

IE6 and IE7 are not supported any more.

Note: See TracTickets for help on using tickets.
© 2003 – 2022, CKSource sp. z o.o. sp.k. All rights reserved. | Terms of use | Privacy policy