CodeQL library for JavaScript
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.

    getLocation

    Gets this element’s location.

    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
    getNumLines

    Gets the number of lines covered by this element.

    from Locatable
    getStartLine

    Gets the line on which this element starts.

    from Locatable

    Charpred