Failed to execute 'removeChild' on 'Node'

前端 未结 10 1285
一向
一向 2020-12-01 01:40

I\'m using http://alexgorbatchev.com/SyntaxHighlighter/ to highlight code on my website but sometimes in my log im getting Javascript errors like this :

10条回答
  •  孤独总比滥情好
    2020-12-01 02:32

    Instead of textarea.parentNode.removeChild(textarea); You could use textarea.parentNode.innerHTML = '' or something similar, depending on your context.

提交回复
热议问题