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

Class DOM::Element

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

Import path

import javascript

Direct supertypes

Indirect supertypes

Known direct subtypes

    Fields

    Predicates

    getAttribute

    Gets the ith attribute of this DOM element, if it can be determined.

    getAttributeByName

    Gets an attribute of this DOM element with the given name.

    getDefinition

    Gets the definition of this element.

    getName

    Gets the tag name of this DOM element.

    Inherited predicates

    getAPrimaryQlClass

    Gets the primary QL class for the Locatable.

    from Locatable
    getEndLine

    Gets the line on which this element ends.

    from Locatable
    getFile

    Gets the file this program element comes from.

    from Locatable
    getLocation

    Gets this element’s location.

    from Locatable
    getNumLines

    Gets the number of lines covered by this element.

    from Locatable
    getPrimaryQlClasses

    Gets a comma-separated list of the names of the primary CodeQL classes to which this element belongs.

    from Locatable
    getStartLine

    Gets the line on which this element starts.

    from Locatable
    toString

    Gets a textual representation of this element.

    from Locatable