mirror of
https://github.com/mozilla/pdf.js.git
synced 2025-04-20 15:18:08 +02:00
Merge pull request #10925 from Snuffleupagus/eslint_no-unsanitized
Enable the `eslint-plugin-no-unsanitized` ESLint plugin to disallow unsafe usage of e.g. `innerHTML`
This commit is contained in:
commit
f1867de492
3 changed files with 5 additions and 0 deletions
|
@ -627,6 +627,7 @@ var Driver = (function DriverClosure() { // eslint-disable-line no-unused-vars
|
|||
// Using insertAdjacentHTML yields a large performance gain and
|
||||
// reduces runtime significantly.
|
||||
if (this.output.insertAdjacentHTML) {
|
||||
// eslint-disable-next-line no-unsanitized/method
|
||||
this.output.insertAdjacentHTML('BeforeEnd', message);
|
||||
} else {
|
||||
this.output.textContent += message;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue