GoogleChrome / lighthouse

Automated auditing, performance metrics, and best practices for the web.
https://developer.chrome.com/docs/lighthouse/overview/
Apache License 2.0
28.27k stars 9.35k forks source link

report: remove use of innerHTML to empty elements #15911

Closed paulirish closed 6 months ago

paulirish commented 6 months ago

ref #15884 and crbug.com/331086923

While this isn't a security problem, we don't need this code to keep popping up in security scanners.


i'm open to using elem.replaceChildren() instead, if that seems clearer.