Skip to content

Commit cb04df4

Browse files
committed
JS: Treat Angular2 ElementRef.nativeElement as a DOM value
1 parent b696936 commit cb04df4

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

javascript/ql/lib/semmle/javascript/frameworks/Angular2.qll

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -547,4 +547,10 @@ module Angular2 {
547547
)
548548
}
549549
}
550+
551+
private class DomValueSources extends DOM::DomValueSource::Range {
552+
DomValueSources() {
553+
this = API::Node::ofType("@angular/core", "ElementRef").getMember("nativeElement").asSource()
554+
}
555+
}
550556
}

0 commit comments

Comments
 (0)