CodeQL library for JavaScript/TypeScript
codeql/javascript-all 0.8.3 (changelog, source)

Predicate DomBasedXss::isOptionallySanitizedNode

Holds if node should be considered optionally sanitized as it occurs in a branch that controls whether sanitization is enabled.

For example, in sanitized = sanitize ? sanitizer(source) : source, the right-hand source expression is considered an optionally sanitized node.

Import path

predicate isOptionallySanitizedNode(Node node)