Skip to content

Commit 62a0641

Browse files
committed
JS: Recognise some types from built-in TypeScript .d.ts files
1 parent 12a793a commit 62a0641

File tree

1 file changed

+1
-1
lines changed
  • javascript/ql/lib/semmle/javascript

1 file changed

+1
-1
lines changed

javascript/ql/lib/semmle/javascript/DOM.qll

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -441,7 +441,7 @@ module DOM {
441441
DataFlow::SourceNode domValueRef() {
442442
result = domValueRef(DataFlow::TypeTracker::end())
443443
or
444-
result.hasUnderlyingType("Element")
444+
result.hasUnderlyingType(["Element", "HTMLCollection", "HTMLCollectionOf"])
445445
or
446446
result.hasUnderlyingType(any(string s | s.matches("HTML%Element")))
447447
or

0 commit comments

Comments
 (0)