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

Module DOM

Import path

import javascript

Predicates

documentRef

Gets a reference to the ‘document’ object.

documentSource

Gets a direct reference to the document object.

domValueRef

Gets a data flow node that may refer to a value from the DOM.

domValueSource

Gets a data flow node that refers directly to a value from the DOM.

getAPropertyNameInterpretedAsJavaScriptUrl

Holds if a value assigned to property name of a DOM node can be interpreted as JavaScript via the javascript: protocol.

isInvalidHtmlIdAttributeValue

Holds if attr is an invalid id attribute because of reason.

isUrlValuedAttribute

Holds if the value of attribute attr is interpreted as a URL.

locationRef

Gets a reference to a DOM location object.

locationSource

Gets a data flow node that directly refers to a DOM location object.

Classes

AttributeDefinition

A DOM attribute as defined, for instance, by an HTML attribute in an HTML file or a JSX attribute in a JavaScript file.

DocumentElementDefinition

An HTML <document> element.

Element

A data flow node or other program element that may refer to a DOM element.

ElementDefinition

A definition of a DOM element, for instance by an HTML element in an HTML file or a JSX element in a JavaScript file.

Modules