Opened 8 years ago

Closed 5 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 Ś 6 years ago.
sample.xml from CKEditor 3.0

Download all attachments as: .zip

Change History (7)

comment:1 Changed 8 years ago by Wiktor Walc

Description: modified (diff)

comment:2 Changed 8 years ago by Wiktor Walc

Keywords: IE9 added
Milestone: CKEditor 3.5.3
Status: newconfirmed

comment:3 Changed 6 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).

Perhaps XML plugin is missing new ActiveXObject("Msxml2.DOMDocument.6.0"); and xmlDoc.setProperty("SelectionLanguage", "XPath");. When I was trying to use these however I have only got null nodes(no errors but nulls).

Here are some links that I have used:
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

Last edited 6 years ago by Jakub Ś (previous) (diff)

comment:4 Changed 6 years ago by Jakub Ś

#9976 was marked as duplicate.

Changed 6 years ago by Jakub Ś

Attachment: sample.xml added

sample.xml from CKEditor 3.0

comment:5 Changed 6 years ago by Jakub Ś

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

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

Resolution: fixed
Status: confirmedclosed

Fixed in #11390.

Note: See TracTickets for help on using tickets.
© 2003 – 2019 CKSource – Frederico Knabben. All rights reserved. | Terms of use | Privacy policy