I\'m using http://alexgorbatchev.com/SyntaxHighlighter/ to highlight code on my website but sometimes in my log im getting Javascript errors like this :
you need to check each time the method is executed whether the element is a child of the given parent.
if(box.parentElement === parentBox) { parentBox.removeChild(box); }