Skip to content

Commit

Permalink
Merge branch 'main' into kh-new-rule-to-flag-invalid-aria-label-format
Browse files Browse the repository at this point in the history
  • Loading branch information
khiga8 committed Mar 23, 2023
2 parents 980be83 + aadb4ce commit 16f28f6
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion docs/rules/no-inner-html.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,9 @@

Using `innerHTML` poses a potential security risk. Prefer using `textContent` to set text to an element.

https://github.com/github/paste-markdown/security/advisories/GHSA-gpfj-4j6g-c4w9
[Related security notification](https://github.com/github/paste-markdown/security/advisories/GHSA-gpfj-4j6g-c4w9)

It may be reasonable to disable this rule in testing setups that use known, trusted input and carry little security risk.

👎 Examples of **incorrect** code for this rule:

Expand Down

0 comments on commit 16f28f6

Please sign in to comment.