File tree Expand file tree Collapse file tree 1 file changed +6
-7
lines changed
javascript/ql/lib/semmle/javascript Expand file tree Collapse file tree 1 file changed +6
-7
lines changed Original file line number Diff line number Diff line change @@ -420,13 +420,6 @@ module DOM {
420
420
t .startInProp ( "target" ) and
421
421
result = domEventSource ( )
422
422
or
423
- t .start ( ) and
424
- exists ( DataFlow:: ClassNode cls |
425
- cls .getASuperClassNode ( ) .getALocalSource ( ) =
426
- DataFlow:: globalVarRef ( any ( string s | s .matches ( "HTML%Element" ) ) ) and
427
- result = cls .getAReceiverNode ( )
428
- )
429
- or
430
423
exists ( DataFlow:: TypeTracker t2 | result = domValueRef ( t2 ) .track ( t2 , t ) )
431
424
}
432
425
@@ -437,6 +430,12 @@ module DOM {
437
430
result .hasUnderlyingType ( "Element" )
438
431
or
439
432
result .hasUnderlyingType ( any ( string s | s .matches ( "HTML%Element" ) ) )
433
+ or
434
+ exists ( DataFlow:: ClassNode cls |
435
+ cls .getASuperClassNode ( ) .getALocalSource ( ) =
436
+ DataFlow:: globalVarRef ( any ( string s | s .matches ( "HTML%Element" ) ) ) and
437
+ result = cls .getAnInstanceReference ( )
438
+ )
440
439
}
441
440
442
441
module LocationSource {
You can’t perform that action at this time.
0 commit comments