Very strange, can someone help me. Here is a quick test function:
function test_function(){
code = '<img src="http://www.myimage.com/img.jpg" alt="image" />';
alert(code);
document.getElementById('test').innerHTML = code;
alert(document.getElementById('test').innerHTML);
}
Execution of the above code will show />in the first warning, but the second warning does not show, it only shows >. So it seems that applying to .innerHTMLremoves a slash. Any ideas how to stop this? I need a slash to check.
David source
share