Attribute

data class Attribute(val location: CssLocation, val name: String, val matcher: String? = null, val value: String? = null, val combinator: CssCombinator? = null) : Selector(source)

Represents an attribute selector (e.g., [type="text"], [ disabled ]).

See also

Constructors

Link copied to clipboard
constructor(location: CssLocation, name: String, matcher: String? = null, value: String? = null, combinator: CssCombinator? = null)

Properties

Link copied to clipboard
open override val combinator: CssCombinator?

The combinator used to combine this selector with other selectors (e.g., descendant, child, adjacent sibling).

Link copied to clipboard
open override val location: CssLocation
Link copied to clipboard

The matcher used to compare the attribute value (e.g., =, ~=, |=).

Link copied to clipboard
open override val name: String

The name of the attribute.

Link copied to clipboard

The value to match against.

Functions

Link copied to clipboard
open override fun toString(indent: Int): String