We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1f228a0 commit cf1e87dCopy full SHA for cf1e87d
javascript/ql/lib/semmle/javascript/DOM.qll
@@ -421,6 +421,9 @@ module DOM {
421
t.startInProp("target") and
422
result = domEventSource()
423
or
424
+ t.startInProp(DataFlow::PseudoProperties::arrayElement()) and
425
+ result = domElementCollection()
426
+ or
427
exists(DataFlow::TypeTracker t2 | result = domValueRef(t2).track(t2, t))
428
}
429
javascript/ql/test/library-tests/DOM/Customizations.expected
@@ -23,5 +23,6 @@ test_domValueRef
23
| nameditems.js:1:1:2:19 | documen ... em('x') |
24
| querySelectorAll.js:2:5:2:29 | documen ... ctorAll |
25
| querySelectorAll.js:2:5:2:36 | documen ... ('foo') |
26
+| querySelectorAll.js:2:46:2:48 | elm |
27
| tst.js:49:3:49:8 | window |
28
| tst.js:50:3:50:8 | window |
0 commit comments