I have this code:
openPopup.hide();
var substr = popupId.split('-');
var clone = $("#popup"+substr[1]).clone(true);
$("#popup"+substr[1]).remove();
$(openPopup).html(clone);
$.dimScreenStop();
It works well in IE 7, IE 9, Chrome, Firefox.
I have tracked the problem down to the line "var clone = $("#popup"+substr[1]).clone(true);". This by adding "alert("Test");" between all the lines and after that line (in IE8) it doesn't output the alert.
The strange thing is that I get error in the jquery min-file (just in IE8 no other browser, or browser version):
SCRIPT5007: Unable to get value of the property 'nodeType': object is null or undefined jquery.min.js?ver=3.4.1, line 2 character 4426