-
Notifications
You must be signed in to change notification settings - Fork 121
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor: favor directly modifying DOM attributes over setAttribute
According to https://stackoverflow.com/a/57633533 setAttribute() invokes the HTML parser, which can trigger a CSP violation. This change refactors style element construction/manipulation to not leverage setAttribute().
- Loading branch information
sherwinski
committed
Feb 18, 2021
1 parent
8d3738b
commit 67666a3
Showing
2 changed files
with
6 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters