attrs

open override val attrs: List<String>

Returns a list of attributes of the element.

Each attribute is represented by its name, and the value can be accessed using the get operator.

For example, if an element has attributes class="my-class" and id="my-id", the list will contain:

val attrs = element.attrs // ["class", "id"]
val classValue = element["class"] // "my-class"
val idValue = element["id"] // "my-id"