Skip to content

Commit dad4838

Browse files
asgerfNapalys
andauthored
Update javascript/ql/test/query-tests/Security/CWE-079/DomBasedXss/tst.js
Co-authored-by: Napalys Klicius <[email protected]>
1 parent 017f458 commit dad4838

File tree

1 file changed

+2
-2
lines changed
  • javascript/ql/test/query-tests/Security/CWE-079/DomBasedXss

1 file changed

+2
-2
lines changed

javascript/ql/test/query-tests/Security/CWE-079/DomBasedXss/tst.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -341,8 +341,8 @@ function thisNodes() {
341341
this.innerHTML = target // OK - this is a jQuery object
342342

343343
this.each(function (i, e) {
344-
this.innerHTML = target; // $ Alert - (this is a DOM-node);
345-
this.html(target); // OK - (this is a DOM-node);
344+
this.innerHTML = target; // $ Alert - this is a DOM-node
345+
this.html(target); // OK - this is a DOM-node
346346

347347
e.innerHTML = target; // $ Alert
348348
});

0 commit comments

Comments
 (0)