PhpStorm 2019.3 Help

Code Inspection: Use of 'innerHTML' property

Reports JavaScript accesses to DOM nodes as text using the innerHTML property.Most uses of innerHTML are better performed using explicitDOM calls such as getElementByID() andcreateElement(). Additionally,innerHTML will not work with XMLDOMs, including DOMs for XHTML if viewed as XML. This can lead to difficult todiagnose bugs.

Last modified: 20 February 2020