Upload files broken in IE9 and IE10
 

File upload is broken on IE9, while it works fine on IE11. Trying compatibilty modes with F12 we see that IE8 is ok, IE9 and IE10 is not. We are using version 0.7.43, but bug is present on this forum.

The problem is in editor.js, row 16.

;if(window.ActiveXObject){var c=document.createElement('<iframe id="'+a+'" name="'+a+'" />');

Error message is:

SCRIPT 5022 DOM exception invalid character err 5

The cause of this is that some versions of IE does not accept complete tags in createElement. (Google createElement and MSDN for details as I don't have karma to post link)

For IE9 and IE10 the proper way should be something like:

var c=document.createElement('iframe');c.setAttribute('id',a);c.setAttribute(name,a)

To enter a block of code:

  • enter empty line after your previous text
  • paste or type the code
  • select the code and press the button above
Preview: (hide)
Kenny Johansson's avatar
11
Kenny Johansson
asked 11 years ago

Comments

see more comments