Opened 12 years ago

Closed 9 years ago

#7348 closed Bug (fixed)

IE9: CKEDITOR.xml.selectSingleNode throws an error

Reported by: Wiktor Walc Owned by:
Priority: Normal Milestone:
Component: General Version: 3.0
Keywords: IE9 IE10 Cc:

Description (last modified by Jakub Ś)

It looks like it is not available in IE9 (?)

Because of that tests for CKEDITOR.ajax and CKEDITOR.xml are failing.

To reproduce, use the following:

var editor = CKEDITOR.replace( 'editor1',{
	extraPlugins : 'xml,ajax',	
});
		
editor.on( 'instanceReady', function( evt ) {						
	setTimeout(function() {
		var data = CKEDITOR.ajax.loadXml( '/ckeditor/sample.xml' );//adjust path to your needs
		alert(data.selectSingleNode( 'list/item' ));
	}, 1000);
});

Attachments (1)

sample.xml (102 bytes) - added by Jakub Ś 10 years ago.
sample.xml from CKEditor 3.0

Download all attachments as: .zip

Change History (7)

comment:1 Changed 12 years ago by Wiktor Walc

Description: modified (diff)

comment:2 Changed 12 years ago by Wiktor Walc

Keywords: IE9 added
Milestone: CKEditor 3.5.3
Status: newconfirmed

comment:3 Changed 10 years ago by Jakub Ś

Description: modified (diff)
Keywords: IE10 added

The same problem occurs in IE9 and IE 10 on both CKEditor 3.x and 4.x (v4).

Seems that XML plugin is missing new ActiveXObject("Msxml2.DOMDocument.6.0");

Here are some useful links:
http://stackoverflow.com/questions/10522236/javascript-on-ie9-xmldom-selectsinglenode-gives-unknown-method-concat
http://msdn.microsoft.com/en-us/library/ms757846%28v=vs.85%29.aspx
http://msdn.microsoft.com/en-us/library/ms754523%28v=vs.85%29.aspx

Version 0, edited 10 years ago by Jakub Ś (next)

comment:4 Changed 10 years ago by Jakub Ś

#9976 was marked as duplicate.

Changed 10 years ago by Jakub Ś

Attachment: sample.xml added

sample.xml from CKEditor 3.0

comment:5 Changed 10 years ago by Jakub Ś

I have tried applying fix from CKFinder but IE9 still throws error and IE10 returns null.

comment:6 Changed 9 years ago by Piotrek Koszuliński

Resolution: fixed
Status: confirmedclosed

Fixed in #11390.

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