Opened 14 years ago
Closed 11 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 )
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)
Change History (7)
comment:1 Changed 14 years ago by
Description: | modified (diff) |
---|
comment:2 Changed 14 years ago by
Keywords: | IE9 added |
---|---|
Milestone: | CKEditor 3.5.3 |
Status: | new → confirmed |
comment:3 Changed 12 years ago by
Description: | modified (diff) |
---|---|
Keywords: | IE10 added |
comment:5 Changed 12 years ago by
I have tried applying fix from CKFinder but IE9 still throws error and IE10 returns null.
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");
andxmlDoc.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