mirror of
https://github.com/github/codeql.git
synced 2025-12-17 09:13:20 +01:00
14 lines
353 B
Plaintext
14 lines
353 B
Plaintext
/**
|
|
* Provides predicates for working with the DOM type hierarchy.
|
|
*/
|
|
|
|
import semmle.javascript.Externs
|
|
|
|
/** Holds if `p` is declared as a property of a DOM class or interface. */
|
|
pragma[nomagic]
|
|
predicate isDomProperty(string p) {
|
|
exists(ExternalMemberDecl emd | emd.getName() = p |
|
|
isDomRootType(emd.getDeclaringType().getASupertype*())
|
|
)
|
|
}
|