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

Class HTML::TextNode

An HTML text node.

Example:

<div>
  This text is represented as a text node.
</div>

Note that instances of this class are only available if extraction is done with --html all or --experimental.

Import path

import javascript

Direct supertypes

Indirect supertypes

Known direct subtypes

    Predicates

    getIndex

    Gets the child index number of this text node.

    getParent

    Gets the parent this text.

    getText

    Gets the content of this text node.

    isCData

    Holds if this text node is inside a CDATA tag.

    toString

    Gets a textual representation of this 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

    Charpred