What is meta? ×
Meta Stack Exchange is where users like you discuss bugs, features, and support issues that affect the software powering all 133 Stack Exchange communities.

Inline editing seems a bit broken at the time, at least in IE 9:

SCRIPT600: Invalid target element for this operation. 
wmd.js?v=5f7bc6eb2343, line 1 character 44242

is what the console tells me. Results are that the preview doesn't work and that the accelerator keys for the toolbar (which appears to be gone?) don't work anymore.

share|improve this question

2 Answers 2

up vote 7 down vote accepted

This is fixed now.

This is an age-old IE problem that seemingly has still not been fixed in IE 9: You cannot set the innerHTML value of an element that is contained somewhere in a table.

So far, our editor was not contained in a table, but with the new inline editing it is; that's why this hasn't come up before.

So if the browser doesn't like to go the simple route, we now detach the element from the DOM, set the content, and reattach it. Which, by the way, feels like an utterly ridiculous thing to do :)

share|improve this answer
    
This seems to be the corresponding Connect entry: connect.microsoft.com/IE/feedback/details/678342 –  Joey Jul 12 '11 at 11:03
    
Do you have an example of how you did this by chance, or could you make a quick one? –  Stavros_S Mar 3 '13 at 2:47

I can also offer this advice:

If you're using JQuery, then you can sidestep this problem by using:

.html()

While I've not delved into the guts of the JQuery code, this seems to have implemented the necessary workarounds, and its use is almost the same in most cases.

share|improve this answer
    
The editor is open source without a jQuery dependency, so we can't use jQuery there. code.google.com/p/pagedown –  balpha Jan 25 '13 at 16:41

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .