Files
codeql/javascript/ql/lib/Expressions/DOMProperties.qll
2023-06-02 11:58:08 +02:00

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*())
)
}