An HTML element.
Example:
<a href="semmle.com">Semmle</a>
Import path
import javascript
Direct supertypes
Indirect supertypes
Known direct subtypes
Predicates
getAPrimaryQlClass | Gets the primary QL class for the Locatable. |
getAnAttribute | Gets an attribute of this element. |
getAttribute | Gets the |
getAttributeByName | Gets an attribute of this element that has the given name. |
getChild | Gets a child element of this element. |
getChild | Gets the |
getDocument | Gets the root HTML document element in which this element is contained. |
getName | Gets the name of this HTML element. |
getParent | Gets the parent element of this element, if any. |
getRoot | Gets the root element in which this element is contained. |
isTopLevel | Holds if this is a toplevel element, that is, if it does not have a parent element. |
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 |