Skip to content

Files

Latest commit

 

History

History
15 lines (10 loc) · 618 Bytes

File metadata and controls

15 lines (10 loc) · 618 Bytes

Pattern: Unsafe call to insertAdjacentHTML, document.write or document.writeln

Issue: -

Description

This error message suggests that you are using an unsafe coding pattern. Please do not simply call functions like insertAdjacentHTML with a variable parameter, as this might cause Cross-Site Scripting (XSS) vulnerabilities. We encourage you to construct DOM nodes using createElement and changing their attributes (e.g., textContent, classList) instead.

Further Reading