Question: what are the disadvantages of using innerhtml in javascript?
Answer: Disadvantages of using innerHTML in JavaScript. There is no append support without reparsing the whole innerHTML. This makes changing innerHTML directly very slow. innerHTML does not provide validation and therefore we can potentially insert valid and broken HTML in the document and break it.