I\'m using http://alexgorbatchev.com/SyntaxHighlighter/ to highlight code on my website but sometimes in my log im getting Javascript errors like this :
I was getting this error and nothing from above helped me, eventually I ended up with just simple :
if (img.parentNode) { body.removeChild(img); }
which works perfectly for me.