The selector type
The selector type is a handle to block-selection state. Selectors can be created with
[mksel] or, for match selection, by setting the active
selector with [match].
Cursor-driven selectors
Most selector modes advance through a block using an internal cursor. Those selectors support the standard cursor operations:
Match selectors
The match mode is value-driven instead of cursor-driven. When a match selector is applied to a
block, it compares its stored match value against each element's @on trigger:
- matching tagged elements form the candidate pool,
- if none match, untagged elements become the fallback pool,
- if that pool is also empty, the block raises a selector error.
Because match selectors do not advance through a cursor, sel-skip, sel-freeze, and sel-frozen
are runtime errors for them.