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

Class HTML::DocumentElement

An HTML <html> element.

Example:

<html>
<body>
This is a test.
</body>
</html>

Import path

import semmle.go.HTML

Direct supertypes

Indirect supertypes

Inherited predicates

getAnAttribute

Gets an attribute of this element.

from Element
getAttribute

Gets the ith attribute (0-based) of this element.

from Element
getAttributeByName

Gets an attribute of this element that has the given name.

from Element
getChild

Gets a child element of this element.

from Element
getChild

Gets the ith child element (0-based) of this element.

from Element
getDocument

Gets the root HTML document element in which this element is contained.

from Element
getFile

Gets the file this program element comes from.

from Locatable
getLocation

Gets this element’s location.

from Locatable
getName

Gets the name of this HTML element.

from Element
getNumLines

Gets the number of lines covered by this element.

from Locatable
getParent

Gets the parent element of this element, if any.

from Element
getRoot

Gets the root element in which this element is contained.

from Element
getTextNode

Gets the text node associated with this element.

from Element
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
isTopLevel

Holds if this is a toplevel element, that is, if it does not have a parent element.

from Element
toString

Gets a textual representation of this element.

from Element

Charpred