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

Class HTML::Attribute

An attribute of an HTML element.

Examples:

<a
  href ="semmle.com"  <!-- an attribute -->
  target=_blank       <!-- also an attribute -->
>Semmle</a>

Import path

import javascript

Direct supertypes

Indirect supertypes

Known direct subtypes

Predicates

getAPrimaryQlClass

Gets the primary QL class for the Locatable.

getCodeInAttribute

Gets the inline script of this attribute, if any.

getElement

Gets the element to which this attribute belongs.

getName

Gets the name of this attribute.

getRoot

Gets the root element in which the element to which this attribute belongs is contained.

getValue

Gets the value of this attribute.

toString

Gets a textual representation of this element.

Inherited predicates

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

Charpred