Opened 13 years ago

Last modified 10 years ago

#7348 closed Bug

IE9: CKEDITOR.xml.selectSingleNode throws an error — at Version 3

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);
});

Change History (3)

comment:1 Changed 13 years ago by Wiktor Walc

Description: modified (diff)

comment:2 Changed 13 years ago by Wiktor Walc

Keywords: IE9 added
Milestone: CKEditor 3.5.3
Status: newconfirmed

comment:3 Changed 11 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 11 years ago by Jakub Ś (previous) (diff)
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