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

Co-authored-by: Napalys Klicius <napalys@github.com>
This commit is contained in:
Asger F
2025-03-10 14:18:42 +01:00
committed by GitHub
parent 017f458534
commit dad4838d3b

View File

@@ -341,8 +341,8 @@ function thisNodes() {
this.innerHTML = target // OK - this is a jQuery object
this.each(function (i, e) {
this.innerHTML = target; // $ Alert - (this is a DOM-node);
this.html(target); // OK - (this is a DOM-node);
this.innerHTML = target; // $ Alert - this is a DOM-node
this.html(target); // OK - this is a DOM-node
e.innerHTML = target; // $ Alert
});