A representation of a HTML DOM element.
Elements can be obtained by obtaining Document instances (for example, through a net.ruippeixotog.scalascraper.browser.Browser) and using one of its several methods. They provide several methods for traversing and retrieving infomation from the DOM of the page in which they are.
Attributes
- Companion
- object
- Graph
-
- Supertypes
-
class Objecttrait Matchableclass Any
- Known subtypes
-
class HtmlUnitElementclass JsoupElement
Members list
Value members
Abstract methods
Returns the value associated with an attribute of this element.
Returns the value associated with an attribute of this element.
Value parameters
- name
-
the name of the attribute
Attributes
- Returns
-
the value associated with the given attribute.
The map of attributes of this element.
The map of attributes of this element.
Attributes
The list of child nodes of this element.
The list of child nodes of this element.
Attributes
The list of children of this element.
The list of children of this element.
Attributes
Checks if an attribute is defined in this element.
Checks if an attribute is defined in this element.
Value parameters
- name
-
the name of the attribute
Attributes
- Returns
-
trueif the attribute is defined,falseotherwise
The HTML representation of the content inside this element as a string.
The HTML representation of the content inside this element as a string.
Attributes
The HTML representation of this element as a string.
The HTML representation of this element as a string.
Attributes
The text content owned by this element only, i.e. without text inside children.
The text content owned by this element only, i.e. without text inside children.
Attributes
Executes a query on this element using a CSS selector.
Executes a query on this element using a CSS selector.
Value parameters
- query
-
the CSS selector used to select elements to be returned
Attributes
- Returns
-
an
ElementQueryinstance representing the sequence of resulting elements
The list of sibling nodes of this element.
The list of sibling nodes of this element.
Attributes
The list of siblings of this element.
The list of siblings of this element.
Attributes
The tag name of this element.
The tag name of this element.
Attributes
The text content inside this element and any child nodes.
The text content inside this element and any child nodes.