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

Class Cheerio::AttributeDef

A definition of a DOM attribute through cheerio.

Import path

import javascript

Direct supertypes

Indirect supertypes

Fields

Predicates

getName

Gets the name of this attribute, if any.

getValueNode

Gets the data flow node whose value is the value of this attribute, if any.

Inherited predicates

getAPrimaryQlClass

Gets the primary QL class for the Locatable.

from Locatable
getElement

Gets the DOM element this attribute belongs to.

from AttributeDefinition
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
getStringValue

Gets the value of this attribute, if it can be determined.

from AttributeDefinition
mayHaveTemplateValue

Holds if the value of this attribute might be a template value such as {{window.location.url}}.

from AttributeDefinition
toString

Gets a textual representation of this element.

from Locatable

Charpred