Skip to content

Latest commit

 

History

History
7 lines (4 loc) · 434 Bytes

no-document-write.md

File metadata and controls

7 lines (4 loc) · 434 Bytes

Do not write to DOM directly using document.write or document.writeln methods (no-document-write)

Calls to document.write or document.writeln manipulate DOM directly without any sanitization and should be avoided. Use document.createElement() or similar methods instead.

Related Rules