A compound selector is a sequence of simple selectors, which represents a set of conditions that are combined to match a single element.
More...
|
|
| CompoundSelector ()=default |
| | Default constructor.
|
|
| ~CompoundSelector () noexcept=default |
| | Destructor.
|
|
| CompoundSelector (const CompoundSelector &)=default |
| | Copy constructor.
|
|
| CompoundSelector (CompoundSelector &&)=default |
| | Move constructor.
|
|
CompoundSelector & | operator= (const CompoundSelector &)=default |
| | Copy assignment operator.
|
|
CompoundSelector & | operator= (CompoundSelector &&)=default |
| | Move assignment operator.
|
| bool | isValid () const |
| | Return true if this selector is valid and supported by this implementation.
|
| template<ElementLike T> |
| bool | matches (const T &element, bool requirePrimary, const SelectorMatchOptions< T > &options) const |
| | Returns true if the provided element matches this selector.
|
A compound selector is a sequence of simple selectors, which represents a set of conditions that are combined to match a single element.
For example, the selector div#foo.bar is a compound selector, while div > #foo is two compound selectors separated by a combinator. Combinators are handled as part of ComplexSelector.