CodeQL library for Go
codeql/go-all 0.7.15-dev (changelog, source)
Search

Class HTML::TextNode

An HTML text node.

Example:

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

Import path

import semmle.go.HTML

Direct supertypes

Indirect supertypes

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

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
hasLocationInfo

Holds if this element is at the specified location. The location spans column startcolumn of line startline to column endcolumn of line endline in file filepath. For more information, see Locations.

from Locatable

Charpred